pub struct SyscallConditionRef<'a> { /* private fields */ }
Expand description
An immutable reference to a syscall condition.
Implementations§
source§impl<'a> SyscallConditionRef<'a>
impl<'a> SyscallConditionRef<'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 active_file(&self) -> Option<&OpenFile>
pub fn timeout(&self) -> Option<EmulatedTime>
Trait Implementations§
source§impl<'a> Debug for SyscallConditionRef<'a>
impl<'a> Debug for SyscallConditionRef<'a>
source§impl<'a> PartialEq for SyscallConditionRef<'a>
impl<'a> PartialEq for SyscallConditionRef<'a>
impl<'a> Eq for SyscallConditionRef<'a>
impl<'a> StructuralPartialEq for SyscallConditionRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SyscallConditionRef<'a>
impl<'a> RefUnwindSafe for SyscallConditionRef<'a>
impl<'a> Send for SyscallConditionRef<'a>
impl<'a> !Sync for SyscallConditionRef<'a>
impl<'a> Unpin for SyscallConditionRef<'a>
impl<'a> UnwindSafe for SyscallConditionRef<'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