pub enum InsertOrigin {
Local,
Sync {
from: PeerIdBytes,
remote_content_status: ContentStatus,
},
}
Expand description
Whether an entry was inserted locally or by a remote peer.
Variants§
Local
The entry was inserted locally.
Sync
The entry was received from the remote node identified by PeerIdBytes
.
Fields
§
from: PeerIdBytes
The peer from which we received this entry.
§
remote_content_status: ContentStatus
Whether the peer claims to have the content blob for this entry.
Trait Implementations§
Source§impl Clone for InsertOrigin
impl Clone for InsertOrigin
Source§fn clone(&self) -> InsertOrigin
fn clone(&self) -> InsertOrigin
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 moreAuto Trait Implementations§
impl Freeze for InsertOrigin
impl RefUnwindSafe for InsertOrigin
impl Send for InsertOrigin
impl Sync for InsertOrigin
impl Unpin for InsertOrigin
impl UnwindSafe for InsertOrigin
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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