pub struct ServerInfo {
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 facts of the server, from its HelloReply.
Fields§
§version: u32The protocol version of the session.
mode: StringThe repository mode.
collection_id: Option<String>The collection id of the repository.
The refs of this collection are the local refs of the server.
max_frame: u32The frame and chunk limit that the session writes with.
The value is in
MIN_FRAME_LIMIT..=MAX_FRAME_LIMIT.
max_have: u32The highest number of object names in one Have.
encodings: Vec<Encoding>The content encodings that the server accepts.
parallel_uploads: u32The most object streams that the server serves at the same time.
refs: Vec<RefState>The state of each ref that the session named, in the order of the names.
Implementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn canonical(&self, r: &Ref) -> Ref
pub fn canonical(&self, r: &Ref) -> Ref
Returns the canonical form of r on the server.
A collection ref of the collection_id
of the server is the local ref of the same name. Each other ref is
unchanged. The call does not check the ref. Ref::canonical gives
the same form in a repository.
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§impl Debug for ServerInfo
impl Debug for ServerInfo
impl Eq for ServerInfo
Source§impl PartialEq for ServerInfo
impl PartialEq for ServerInfo
impl StructuralPartialEq for ServerInfo
Auto Trait Implementations§
impl Forget for ServerInfo
impl Freeze for ServerInfo
impl Move for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnsafeUnpin for ServerInfo
impl UnwindSafe for ServerInfo
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.