pub struct GetReply {
pub found: bool,
pub len: Option<u64>,
}Expand description
The reply to one Get or one ListRefs.
Fields§
§found: boolThe flag that is true if the server serves the path or the listing.
If found is true, a body of chunks follows the reply, as
Object stream states.
len: Option<u64>The length of the body, if the server knows it.
A reply to a ListRefs must hold it, as the specification of
ListRefs states. If found is false and the length
is present, encode and decode return Error::Protocol.
Trait Implementations§
impl Eq for GetReply
impl StructuralPartialEq for GetReply
Auto Trait Implementations§
impl Forget for GetReply
impl Freeze for GetReply
impl Move for GetReply
impl RefUnwindSafe for GetReply
impl Send for GetReply
impl Sync for GetReply
impl Unpin for GetReply
impl UnsafeUnpin for GetReply
impl UnwindSafe for GetReply
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.