#[repr(u8)]pub enum N1Event {
NicLinkChange = 0,
NicBackpressure = 1,
MemoryPressure = 2,
FsNotification = 3,
SchedTick = 4,
Wakeup = 5,
}Expand description
Events that can flow over N1 kernel-internal channels.
Variants§
NicLinkChange = 0
NIC link status changed (up/down).
NicBackpressure = 1
NIC ring backpressure (consumer too slow).
MemoryPressure = 2
Memory pressure notification.
FsNotification = 3
Filesystem event (file created, deleted, etc.).
SchedTick = 4
Scheduler tick / timeslice hint.
Wakeup = 5
Generic wakeup signal.
Implementations§
Trait Implementations§
impl Copy for N1Event
impl Eq for N1Event
impl StructuralPartialEq for N1Event
Auto Trait Implementations§
impl Freeze for N1Event
impl RefUnwindSafe for N1Event
impl Send for N1Event
impl Sync for N1Event
impl Unpin for N1Event
impl UnsafeUnpin for N1Event
impl UnwindSafe for N1Event
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,
§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
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