#[repr(C)]pub struct ThreadShmemProtected {
pub host_id: HostId,
pub pending_signals: sigset_t,
pub blocked_signals: sigset_t,
/* private fields */
}
Fields§
§host_id: HostId
§pending_signals: sigset_t
§blocked_signals: sigset_t
Implementations§
source§impl ThreadShmemProtected
impl ThreadShmemProtected
pub fn pending_standard_siginfo(&self, signal: Signal) -> Option<&siginfo_t>
pub fn set_pending_standard_siginfo(&mut self, signal: Signal, info: &siginfo_t)
sourcepub unsafe fn sigaltstack(&self) -> &stack_t
pub unsafe fn sigaltstack(&self) -> &stack_t
§Safety
stack_t::ss_sp
must not be dereferenced except from corresponding
managed thread.
sourcepub unsafe fn sigaltstack_mut(&mut self) -> &mut stack_t
pub unsafe fn sigaltstack_mut(&mut self) -> &mut stack_t
§Safety
stack_t::ss_sp
must not be dereferenced except from corresponding
managed thread. Must be set to either std::ptr::null_mut, or a pointer valid
in the managed thread.
pub fn take_pending_unblocked_signal(&mut self) -> Option<(Signal, siginfo_t)>
Trait Implementations§
source§impl Clone for ThreadShmemProtected
impl Clone for ThreadShmemProtected
source§fn clone(&self) -> ThreadShmemProtected
fn clone(&self) -> ThreadShmemProtected
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ThreadShmemProtected
Auto Trait Implementations§
impl Freeze for ThreadShmemProtected
impl RefUnwindSafe for ThreadShmemProtected
impl Send for ThreadShmemProtected
impl !Sync for ThreadShmemProtected
impl Unpin for ThreadShmemProtected
impl UnwindSafe for ThreadShmemProtected
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)