pub struct SyscallConditionRefMut<'a> { /* private fields */ }
Expand description
A mutable reference to a syscall condition.
Implementations§
source§impl<'a> SyscallConditionRefMut<'a>
impl<'a> SyscallConditionRefMut<'a>
sourcepub unsafe fn borrow_from_c(ptr: *mut SysCallCondition) -> Self
pub unsafe fn borrow_from_c(ptr: *mut SysCallCondition) -> Self
Borrows from a C pointer. i.e. doesn’t increase the ref count, nor decrease the ref count when dropped.
§Safety
ptr
must point to a valid object that will not be accessed by other threads
for the lifetime of this object.
pub fn set_active_file(&mut self, file: OpenFile)
pub fn wakeup_for_signal(&mut self, host: &Host, signal: Signal) -> bool
pub fn set_timeout(&mut self, timeout: Option<EmulatedTime>)
Methods from Deref<Target = SyscallConditionRef<'a>>§
pub fn active_file(&self) -> Option<&OpenFile>
pub fn timeout(&self) -> Option<EmulatedTime>
Trait Implementations§
source§impl<'a> Debug for SyscallConditionRefMut<'a>
impl<'a> Debug for SyscallConditionRefMut<'a>
source§impl<'a> Deref for SyscallConditionRefMut<'a>
impl<'a> Deref for SyscallConditionRefMut<'a>
source§impl<'a> PartialEq for SyscallConditionRefMut<'a>
impl<'a> PartialEq for SyscallConditionRefMut<'a>
impl<'a> Eq for SyscallConditionRefMut<'a>
impl<'a> StructuralPartialEq for SyscallConditionRefMut<'a>
Auto Trait Implementations§
impl<'a> Freeze for SyscallConditionRefMut<'a>
impl<'a> RefUnwindSafe for SyscallConditionRefMut<'a>
impl<'a> Send for SyscallConditionRefMut<'a>
impl<'a> !Sync for SyscallConditionRefMut<'a>
impl<'a> Unpin for SyscallConditionRefMut<'a>
impl<'a> UnwindSafe for SyscallConditionRefMut<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more