Struct stateright::actor::Envelope
source · pub struct Envelope<Msg> {
pub src: Id,
pub dst: Id,
pub msg: Msg,
}
Expand description
Indicates the source and destination for a message.
Fields§
§src: Id
§dst: Id
§msg: Msg
Implementations§
Trait Implementations§
source§impl<Msg: Ord> Ord for Envelope<Msg>
impl<Msg: Ord> Ord for Envelope<Msg>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Msg: PartialEq> PartialEq<Envelope<Msg>> for Envelope<Msg>
impl<Msg: PartialEq> PartialEq<Envelope<Msg>> for Envelope<Msg>
source§impl<Msg: PartialOrd> PartialOrd<Envelope<Msg>> for Envelope<Msg>
impl<Msg: PartialOrd> PartialOrd<Envelope<Msg>> for Envelope<Msg>
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 moresource§impl<Msg> Rewrite<Id> for Envelope<Msg>where
Msg: Rewrite<Id>,
impl<Msg> Rewrite<Id> for Envelope<Msg>where Msg: Rewrite<Id>,
source§fn rewrite<S>(&self, plan: &RewritePlan<Id, S>) -> Self
fn rewrite<S>(&self, plan: &RewritePlan<Id, S>) -> Self
Generates a corresponding instance with values revised based on a particular
RewritePlan
.impl<Msg: Copy> Copy for Envelope<Msg>
impl<Msg: Eq> Eq for Envelope<Msg>
impl<Msg> StructuralEq for Envelope<Msg>
impl<Msg> StructuralPartialEq for Envelope<Msg>
Auto Trait Implementations§
impl<Msg> RefUnwindSafe for Envelope<Msg>where Msg: RefUnwindSafe,
impl<Msg> Send for Envelope<Msg>where Msg: Send,
impl<Msg> Sync for Envelope<Msg>where Msg: Sync,
impl<Msg> Unpin for Envelope<Msg>where Msg: Unpin,
impl<Msg> UnwindSafe for Envelope<Msg>where Msg: 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more