pub enum Event {
LocalInsert {
namespace: NamespaceId,
entry: SignedEntry,
},
RemoteInsert {
namespace: NamespaceId,
entry: SignedEntry,
from: PeerIdBytes,
should_download: bool,
remote_content_status: ContentStatus,
},
}
Expand description
Event emitted by sync when entries are added.
Variants§
LocalInsert
A local entry has been added.
Fields
§
namespace: NamespaceId
Document in which the entry was inserted.
§
entry: SignedEntry
Inserted entry.
RemoteInsert
A remote entry has been added.
Fields
§
namespace: NamespaceId
Document in which the entry was inserted.
§
entry: SignedEntry
Inserted entry.
§
from: PeerIdBytes
Peer that provided the inserted entry.
§
remote_content_status: ContentStatus
ContentStatus
for this entry in the remote’s replica.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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