pub struct CapabilitySet {
pub caps: Capabilities,
pub valid: bool,
pub error: Option<String>,
}Expand description
A set of capabilities that have been negotiated.
Fields§
§caps: Capabilities§valid: bool§error: Option<String>Implementations§
Source§impl CapabilitySet
impl CapabilitySet
pub fn new(client: &Capabilities, server: &Capabilities) -> Self
pub fn has_flag(&self, flag: &str) -> bool
pub fn delta_enabled(&self) -> bool
pub fn chunk_size(&self) -> usize
pub fn max_object_size(&self) -> usize
pub fn chunked_transfer_enabled(&self) -> bool
pub fn resumable_transfer_enabled(&self) -> bool
pub fn pack_transfer_enabled(&self) -> bool
pub fn partial_fetch_enabled(&self) -> bool
Trait Implementations§
Source§impl Clone for CapabilitySet
impl Clone for CapabilitySet
Source§fn clone(&self) -> CapabilitySet
fn clone(&self) -> CapabilitySet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapabilitySet
impl RefUnwindSafe for CapabilitySet
impl Send for CapabilitySet
impl Sync for CapabilitySet
impl Unpin for CapabilitySet
impl UnsafeUnpin for CapabilitySet
impl UnwindSafe for CapabilitySet
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