pub enum SyncAnswer {
NothingNew,
Changes {
version: u64,
upserts: Vec<Row>,
deletes: Vec<String>,
more: bool,
},
FullCopy {
epoch: String,
version: u64,
rows: Vec<Row>,
next: Option<String>,
},
Error(SyncErrorCode),
}Expand description
The node’s answer for one entry of a check (section 4.3): 0, the changes
(without e, which the device already holds), a full copy, or an error.
Variants§
NothingNew
0: the device holds the head.
Changes
{"v":43,"u":[…],"x":[…]} plus "m":1: see PullReply::Changes.
Fields
FullCopy
{"e":…,"v":7,"f":1,"u":[…]} plus "n": see PullReply::FullCopy
(without "h", which is for the node).
Fields
Error(SyncErrorCode)
{"err":"<code>"}.
Trait Implementations§
Source§impl Clone for SyncAnswer
impl Clone for SyncAnswer
Source§impl Debug for SyncAnswer
impl Debug for SyncAnswer
Source§impl<'de> Deserialize<'de> for SyncAnswer
impl<'de> Deserialize<'de> for SyncAnswer
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PullReply> for SyncAnswer
impl From<PullReply> for SyncAnswer
Source§impl PartialEq for SyncAnswer
impl PartialEq for SyncAnswer
Source§impl Serialize for SyncAnswer
impl Serialize for SyncAnswer
impl StructuralPartialEq for SyncAnswer
Auto Trait Implementations§
impl Forget for SyncAnswer
impl Freeze for SyncAnswer
impl Move for SyncAnswer
impl RefUnwindSafe for SyncAnswer
impl Send for SyncAnswer
impl Sync for SyncAnswer
impl Unpin for SyncAnswer
impl UnsafeUnpin for SyncAnswer
impl UnwindSafe for SyncAnswer
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