pub enum SyscallError {
Failed(Failed),
Blocked(Blocked),
Native,
}Variants§
Implementations§
Source§impl SyscallError
impl SyscallError
pub fn new_blocked_on_file( file: File, state: FileState, restartable: bool, ) -> Self
pub fn new_blocked_on_child(restartable: bool) -> Self
pub fn new_blocked_on_futex(futex: FutexRef, restartable: bool) -> Self
pub fn new_blocked_until(unblock_time: EmulatedTime, restartable: bool) -> Self
pub fn new_interrupted(restartable: bool) -> Self
Sourcepub fn blocked_condition(&mut self) -> Option<&mut SyscallCondition>
pub fn blocked_condition(&mut self) -> Option<&mut SyscallCondition>
Returns the condition that the syscall is blocked on.
Trait Implementations§
Source§impl Debug for SyscallError
impl Debug for SyscallError
Source§impl From<Errno> for SyscallError
impl From<Errno> for SyscallError
Source§impl From<Error> for SyscallError
impl From<Error> for SyscallError
Source§impl PartialEq for SyscallError
impl PartialEq for SyscallError
impl Eq for SyscallError
impl StructuralPartialEq for SyscallError
Auto Trait Implementations§
impl Freeze for SyscallError
impl RefUnwindSafe for SyscallError
impl Send for SyscallError
impl !Sync for SyscallError
impl Unpin for SyscallError
impl UnwindSafe for SyscallError
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