pub enum SyncResponseMessage {
SyncResponse {
session_id: u128,
response_index: u64,
commands: Vec<CommandMeta, COMMAND_RESPONSE_MAX>,
},
SyncEnd {
session_id: u128,
max_index: u64,
remaining: bool,
},
Offer {
session_id: u128,
head: CmdId,
},
EndSession {
session_id: u128,
},
}Expand description
Messages sent from the responder to the requester.
Variants§
SyncResponse
Sent in response to a SyncRequest
Fields
response_index: u64If the responder intends to send a value of command bytes
greater than the responder’s configured maximum, the responder
will send more than one SyncResponse. The first message has an
index of 1, and each following is incremented.
commands: Vec<CommandMeta, COMMAND_RESPONSE_MAX>Commands that the responder believes the requester does not have.
SyncEnd
End a sync session if SyncRequest.max_bytes has been reached or
there are no remaining commands to send.
Fields
Offer
Message sent by a responder after a sync has been completed, but before
the session has ended, if it has new commands in it’s graph. If a
requester wishes to respond to this message, it should do so with a
new SyncRequest. This message may use the existing session_id.
Fields
EndSession
Message sent by either requester or responder to indicate the session
has been terminated or the session_id is no longer valid.
Implementations§
Source§impl SyncResponseMessage
impl SyncResponseMessage
pub fn session_id(&self) -> u128
Trait Implementations§
Source§impl Debug for SyncResponseMessage
impl Debug for SyncResponseMessage
Source§impl<'de> Deserialize<'de> for SyncResponseMessage
impl<'de> Deserialize<'de> for SyncResponseMessage
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>,
Auto Trait Implementations§
impl Freeze for SyncResponseMessage
impl RefUnwindSafe for SyncResponseMessage
impl Send for SyncResponseMessage
impl Sync for SyncResponseMessage
impl Unpin for SyncResponseMessage
impl UnsafeUnpin for SyncResponseMessage
impl UnwindSafe for SyncResponseMessage
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.