pub struct ServerInfo {
pub version: u32,
pub mode: String,
pub collection_id: Option<String>,
pub collection: 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.
collection: Option<String>The collection of the namespace of the session, from the key
collection of HelloReply.
None is the local refs of the server. The session checks the value
against SessionOptions::collection when it opens. With no
requested collection, the value is None. With a requested id, the
value is that id, or None if the id is
collection_id.
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 binding_collection(&self) -> Option<&str>
pub fn binding_collection(&self) -> Option<&str>
Returns the collection id that a commit of the session binds to.
The value is collection for a collection
namespace, and collection_id for the
local refs. None is the local refs of a server with no collection
id.
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 Freeze 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.