Enum fibril_core::Event
source · #[non_exhaustive]pub enum Event<M> {
DeadlineOk(Deadline),
DeadlineElapsedOk(bool),
ExpectOk(Expectation),
ExpectationMetOk,
RecvOk(Id, M),
SendOk,
SleepUntilOk,
SpawnOk(Id),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeadlineOk(Deadline)
DeadlineElapsedOk(bool)
ExpectOk(Expectation)
ExpectationMetOk
RecvOk(Id, M)
SendOk
SleepUntilOk
SpawnOk(Id)
Trait Implementations§
source§impl<'de, M> Deserialize<'de> for Event<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for Event<M>where M: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<M: PartialEq> PartialEq<Event<M>> for Event<M>
impl<M: PartialEq> PartialEq<Event<M>> for Event<M>
source§impl<M: PartialOrd> PartialOrd<Event<M>> for Event<M>
impl<M: PartialOrd> PartialOrd<Event<M>> for Event<M>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<M: Eq> Eq for Event<M>
impl<M> StructuralEq for Event<M>
impl<M> StructuralPartialEq for Event<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for Event<M>where M: RefUnwindSafe,
impl<M> Send for Event<M>where M: Send,
impl<M> Sync for Event<M>where M: Sync,
impl<M> Unpin for Event<M>where M: Unpin,
impl<M> UnwindSafe for Event<M>where M: UnwindSafe,
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