pub struct HelloReply {
pub version: u32,
pub mode: String,
pub collection_id: Option<String>,
pub max_frame: u32,
pub max_have: u32,
pub encodings: Vec<Encoding>,
pub parallel_uploads: u32,
pub refs: Vec<RefState>,
}Expand description
The reply to a Hello, with the facts and limits of the server.
It also gives the state of each ref that the Hello names.
Fields§
§version: u32The protocol version that the server speaks for the session.
mode: StringThe repository mode, under the key mode.
collection_id: Option<String>The collection id of the repository, under the key collection-id.
The refs of this collection are the local refs of the server.
max_frame: u32The frame limit that the server announces, under the key max-frame.
Encode and decode return Error::Protocol for a value outside
MIN_FRAME_LIMIT..=MAX_FRAME_LIMIT.
max_have: u32The maximum number of entries in one Have, under the key max-have.
The value is at least 1. For the value 0, encode and decode return
Error::Protocol.
encodings: Vec<Encoding>The content encodings that the server accepts, under the key
encodings.
The decoder drops a name that is not an encoding.
parallel_uploads: u32The most object streams at a time, under the key parallel-uploads.
The server serves at most this number of object streams at the same
time in one session. The value is at least 1. For the value 0, encode and
decode return Error::Protocol.
refs: Vec<RefState>The state of each ref that the Hello names, one entry for each ref.
Trait Implementations§
Source§impl Clone for HelloReply
impl Clone for HelloReply
Source§impl Debug for HelloReply
impl Debug for HelloReply
impl Eq for HelloReply
Source§impl PartialEq for HelloReply
impl PartialEq for HelloReply
impl StructuralPartialEq for HelloReply
Auto Trait Implementations§
impl Forget for HelloReply
impl Freeze for HelloReplywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Encoding>: Freeze,
PhantomData<RefState>: Freeze,
impl Move for HelloReply
impl RefUnwindSafe for HelloReply
impl Send for HelloReplywhere
RawVecInner: Send,
impl Sync for HelloReplywhere
RawVecInner: Sync,
impl Unpin for HelloReply
impl UnsafeUnpin for HelloReplywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Encoding>: UnsafeUnpin,
PhantomData<RefState>: UnsafeUnpin,
impl UnwindSafe for HelloReplywhere
RawVecInner: UnwindSafe,
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
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
key and return true if they are equal.