Enum stateright::actor::ordered_reliable_link::MsgWrapper
source · pub enum MsgWrapper<Msg> {
Deliver(Sequencer, Msg),
Ack(Sequencer),
}
Expand description
An envelope for ORL messages.
Variants§
Trait Implementations§
source§impl<Msg: Clone> Clone for MsgWrapper<Msg>
impl<Msg: Clone> Clone for MsgWrapper<Msg>
source§fn clone(&self) -> MsgWrapper<Msg>
fn clone(&self) -> MsgWrapper<Msg>
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<Msg: Debug> Debug for MsgWrapper<Msg>
impl<Msg: Debug> Debug for MsgWrapper<Msg>
source§impl<'de, Msg> Deserialize<'de> for MsgWrapper<Msg>where
Msg: Deserialize<'de>,
impl<'de, Msg> Deserialize<'de> for MsgWrapper<Msg>where Msg: 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<Msg: Hash> Hash for MsgWrapper<Msg>
impl<Msg: Hash> Hash for MsgWrapper<Msg>
source§impl<Msg: Ord> Ord for MsgWrapper<Msg>
impl<Msg: Ord> Ord for MsgWrapper<Msg>
source§fn cmp(&self, other: &MsgWrapper<Msg>) -> Ordering
fn cmp(&self, other: &MsgWrapper<Msg>) -> Ordering
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<MsgWrapper<Msg>> for MsgWrapper<Msg>
impl<Msg: PartialEq> PartialEq<MsgWrapper<Msg>> for MsgWrapper<Msg>
source§fn eq(&self, other: &MsgWrapper<Msg>) -> bool
fn eq(&self, other: &MsgWrapper<Msg>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Msg: PartialOrd> PartialOrd<MsgWrapper<Msg>> for MsgWrapper<Msg>
impl<Msg: PartialOrd> PartialOrd<MsgWrapper<Msg>> for MsgWrapper<Msg>
source§fn partial_cmp(&self, other: &MsgWrapper<Msg>) -> Option<Ordering>
fn partial_cmp(&self, other: &MsgWrapper<Msg>) -> Option<Ordering>
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> Serialize for MsgWrapper<Msg>where
Msg: Serialize,
impl<Msg> Serialize for MsgWrapper<Msg>where Msg: Serialize,
impl<Msg: Eq> Eq for MsgWrapper<Msg>
impl<Msg> StructuralEq for MsgWrapper<Msg>
impl<Msg> StructuralPartialEq for MsgWrapper<Msg>
Auto Trait Implementations§
impl<Msg> RefUnwindSafe for MsgWrapper<Msg>where Msg: RefUnwindSafe,
impl<Msg> Send for MsgWrapper<Msg>where Msg: Send,
impl<Msg> Sync for MsgWrapper<Msg>where Msg: Sync,
impl<Msg> Unpin for MsgWrapper<Msg>where Msg: Unpin,
impl<Msg> UnwindSafe for MsgWrapper<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