pub struct SyscallConditionRefMut<'a> { /* private fields */ }Expand description
A mutable reference to a syscall condition.
Implementations§
Source§impl SyscallConditionRefMut<'_>
 
impl SyscallConditionRefMut<'_>
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<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
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