#[repr(C)]pub enum SyscallState {
Executing,
Suspend(u64),
Timeout,
Finished,
}
Expand description
Enums used to describe syscall state
Variants§
Executing
执行中
Suspend(u64)
被挂起到指定时间后继续执行,参数为时间戳
Timeout
到指定时间戳后回来,期间系统调用可能没执行完毕 对于sleep系列,这个状态表示正常完成
Finished
系统调用完成
Trait Implementations§
source§impl Clone for SyscallState
impl Clone for SyscallState
source§fn clone(&self) -> SyscallState
fn clone(&self) -> SyscallState
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 moresource§impl Debug for SyscallState
impl Debug for SyscallState
source§impl Display for SyscallState
impl Display for SyscallState
source§impl PartialEq for SyscallState
impl PartialEq for SyscallState
source§fn eq(&self, other: &SyscallState) -> bool
fn eq(&self, other: &SyscallState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SyscallState
impl Eq for SyscallState
impl StructuralEq for SyscallState
impl StructuralPartialEq for SyscallState
Auto Trait Implementations§
impl RefUnwindSafe for SyscallState
impl Send for SyscallState
impl Sync for SyscallState
impl Unpin for SyscallState
impl UnwindSafe for SyscallState
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more