#[repr(u8)]pub enum FrameState {
Free = 0,
Allocated = 1,
InRxRing = 2,
Processing = 3,
InTxRing = 4,
InCompletionRing = 5,
Quarantine = 6,
}Expand description
Frame 状态
Variants§
Free = 0
空闲状态
Allocated = 1
已分配给应用
InRxRing = 2
在内核 RX Ring 中
Processing = 3
在用户态处理中
InTxRing = 4
在 TX Ring 中等待发送
InCompletionRing = 5
在完成队列中等待回收
Quarantine = 6
在隔离区(异常状态)
Trait Implementations§
Source§impl Clone for FrameState
impl Clone for FrameState
Source§fn clone(&self) -> FrameState
fn clone(&self) -> FrameState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameState
Source§impl Debug for FrameState
impl Debug for FrameState
impl Eq for FrameState
Source§impl PartialEq for FrameState
impl PartialEq for FrameState
impl StructuralPartialEq for FrameState
Auto Trait Implementations§
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnsafeUnpin for FrameState
impl UnwindSafe for FrameState
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.