pub enum LogSyncMessage<L> {
Have(Vec<(PublicKey, Vec<(L, u64)>)>),
PreSync {
total_operations: u64,
total_bytes: u64,
},
Operation(Vec<u8>, Option<Vec<u8>>),
Done,
}Expand description
Protocol messages.
Variants§
Trait Implementations§
Source§impl<L: Clone> Clone for LogSyncMessage<L>
impl<L: Clone> Clone for LogSyncMessage<L>
Source§fn clone(&self) -> LogSyncMessage<L>
fn clone(&self) -> LogSyncMessage<L>
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 moreSource§impl<L: Debug> Debug for LogSyncMessage<L>
impl<L: Debug> Debug for LogSyncMessage<L>
Source§impl<'de, L> Deserialize<'de> for LogSyncMessage<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for LogSyncMessage<L>where
L: 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<L> Display for LogSyncMessage<L>where
L: Debug,
impl<L> Display for LogSyncMessage<L>where
L: Debug,
Source§impl<L: PartialEq> PartialEq for LogSyncMessage<L>
impl<L: PartialEq> PartialEq for LogSyncMessage<L>
Source§impl<L> Serialize for LogSyncMessage<L>where
L: Serialize,
impl<L> Serialize for LogSyncMessage<L>where
L: Serialize,
impl<L> StructuralPartialEq for LogSyncMessage<L>
Auto Trait Implementations§
impl<L> Freeze for LogSyncMessage<L>
impl<L> RefUnwindSafe for LogSyncMessage<L>where
L: RefUnwindSafe,
impl<L> Send for LogSyncMessage<L>where
L: Send,
impl<L> Sync for LogSyncMessage<L>where
L: Sync,
impl<L> Unpin for LogSyncMessage<L>where
L: Unpin,
impl<L> UnwindSafe for LogSyncMessage<L>where
L: 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