pub struct SimulatedMessage {
pub source: NodeId,
pub seq: u64,
pub version: VersionVector,
pub content: Vec<u8>,
}Expand description
A simulated message for testing
Fields§
§source: NodeId§seq: u64§version: VersionVector§content: Vec<u8>Trait Implementations§
Source§impl Clone for SimulatedMessage
impl Clone for SimulatedMessage
Source§fn clone(&self) -> SimulatedMessage
fn clone(&self) -> SimulatedMessage
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SimulatedMessage
impl RefUnwindSafe for SimulatedMessage
impl Send for SimulatedMessage
impl Sync for SimulatedMessage
impl Unpin for SimulatedMessage
impl UnsafeUnpin for SimulatedMessage
impl UnwindSafe for SimulatedMessage
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