pub struct Offered {
pub filter: bool,
}Expand description
What a client may turn off in the fetch capability.
filter is the one capability an operator plausibly wants to decline
(serving a partial clone means serving arbitrary blob subsets), so it is a
knob rather than a constant. Declining it removes the feature from the
advertisement and makes the parser reject the argument, together, in
fetch_capability and crate::upload_pack::FetchRequest::parse.
Fields§
§filter: boolWhether filter is advertised and accepted.
Implementations§
Trait Implementations§
impl Copy for Offered
impl Eq for Offered
impl StructuralPartialEq for Offered
Auto Trait Implementations§
impl Freeze for Offered
impl RefUnwindSafe for Offered
impl Send for Offered
impl Sync for Offered
impl Unpin for Offered
impl UnsafeUnpin for Offered
impl UnwindSafe for Offered
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