pub enum ContentPutAnswer {
Begun {
upload: u64,
},
Appended {
written: u64,
},
Finished {
content: String,
},
Many {
contents: Vec<String>,
},
Have {
present: Vec<bool>,
},
}Expand description
What a device answers a ContentPutStep.
Variants§
Begun
The upload is open under upload, for the caller who began it.
Appended
The bytes accepted so far.
Finished
The content’s reference, tilo.content:<hash>.
Many
The reference of each file stored, in the order asked.
Have
Whether each hash asked about is held, in the order asked.
Trait Implementations§
Source§impl Clone for ContentPutAnswer
impl Clone for ContentPutAnswer
Source§impl Debug for ContentPutAnswer
impl Debug for ContentPutAnswer
Source§impl<'de> Deserialize<'de> for ContentPutAnswer
impl<'de> Deserialize<'de> for ContentPutAnswer
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
impl Eq for ContentPutAnswer
Source§impl PartialEq for ContentPutAnswer
impl PartialEq for ContentPutAnswer
Source§impl Serialize for ContentPutAnswer
impl Serialize for ContentPutAnswer
impl StructuralPartialEq for ContentPutAnswer
Auto Trait Implementations§
impl Forget for ContentPutAnswer
impl Freeze for ContentPutAnswer
impl Move for ContentPutAnswer
impl RefUnwindSafe for ContentPutAnswer
impl Send for ContentPutAnswer
impl Sync for ContentPutAnswer
impl Unpin for ContentPutAnswer
impl UnsafeUnpin for ContentPutAnswer
impl UnwindSafe for ContentPutAnswer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more