#[non_exhaustive]pub struct BackendCapabilities {
pub segmented: bool,
pub resume: bool,
pub multi_file: bool,
}Expand description
Feature flags a backend advertises about the transfers it supports.
The values are descriptive: callers use them for policy decisions and
diagnostics rather than to gate routing. Default means “none”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.segmented: boolWhether a file can be fetched as multiple byte ranges in parallel.
resume: boolWhether an interrupted transfer can continue from a saved
TaskResume instead of starting over.
multi_file: boolWhether a single resource may produce several output files, such as a repository snapshot.
Implementations§
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
Source§impl Debug for BackendCapabilities
impl Debug for BackendCapabilities
Source§impl Default for BackendCapabilities
impl Default for BackendCapabilities
Source§impl<'de> Deserialize<'de> for BackendCapabilities
impl<'de> Deserialize<'de> for BackendCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for BackendCapabilities
impl Freeze for BackendCapabilities
impl Move for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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