#[repr(C)]pub enum SyscallState {
Executing,
Suspend(u64),
Timeout,
Callback,
}
Expand description
Enums used to describe syscall state
Variants§
Executing
执行中
Suspend(u64)
被挂起到指定时间后继续执行,参数为时间戳
Timeout
到指定时间戳后回来,期间系统调用可能没执行完毕 对于sleep系列,这个状态表示正常完成
Callback
系统调用回调成功
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 SyscallStatewhere
SyscallState: Debug,
impl Display for SyscallStatewhere
SyscallState: Debug,
Source§impl PartialEq for SyscallState
impl PartialEq for SyscallState
impl Copy for SyscallState
impl Eq for SyscallState
impl StructuralPartialEq for SyscallState
Auto Trait Implementations§
impl Freeze for SyscallState
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