pub enum FetchResponse {
NewChanges {
tip: Cid,
},
UpToDate,
}Expand description
The possible responses from the “fetch” API route
Variants§
NewChanges
There are new revisions to the local and “counterpart” spheres to sync with local history
Fields
UpToDate
There are no new revisions since the revision specified in the initial fetch request
Trait Implementations§
Source§impl Debug for FetchResponse
impl Debug for FetchResponse
Source§impl<'de> Deserialize<'de> for FetchResponse
impl<'de> Deserialize<'de> for FetchResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FetchResponse
impl RefUnwindSafe for FetchResponse
impl Send for FetchResponse
impl Sync for FetchResponse
impl Unpin for FetchResponse
impl UnwindSafe for FetchResponse
Blanket Implementations§
Source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
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