pub struct SyncUpdate {
pub publisher: String,
pub name: Name,
pub low_seq: u64,
pub high_seq: u64,
pub mapping: Option<Bytes>,
}Expand description
A notification that new data is available from a peer.
Fields§
§publisher: StringThe peer that published new data.
name: NameName prefix under which the new data can be fetched.
low_seq: u64Sequence range of new publications: [low, high] inclusive.
high_seq: u64§mapping: Option<Bytes>Optional mapping metadata from the publisher (ndnSVS MappingData).
Present when the peer called SyncHandle::publish_with_mapping. The
bytes are application-defined; a common convention is to encode a content
Name TLV (type 7) so the consumer can fetch the named object directly
without constructing the name from the sequence number.
Trait Implementations§
Source§impl Clone for SyncUpdate
impl Clone for SyncUpdate
Source§fn clone(&self) -> SyncUpdate
fn clone(&self) -> SyncUpdate
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 Debug for SyncUpdate
impl Debug for SyncUpdate
Auto Trait Implementations§
impl !Freeze for SyncUpdate
impl RefUnwindSafe for SyncUpdate
impl Send for SyncUpdate
impl Sync for SyncUpdate
impl Unpin for SyncUpdate
impl UnwindSafe for SyncUpdate
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