pub enum CapValue {
Bare,
ObjectFormat,
Agent,
Features(&'static [Argument]),
}Expand description
What follows a capability’s name on the wire.
Variants§
Bare
Nothing: the name alone, atomic.
ObjectFormat
=sha1 / =sha256, from the repository’s hash.
Agent
=gunnar/1.1.0, from the caller’s agent string.
Features(&'static [Argument])
=<features>, generated from a v2 argument table by features.
A bare name when the table gates nothing, which is what
capability already does.
Trait Implementations§
impl Copy for CapValue
impl Eq for CapValue
impl StructuralPartialEq for CapValue
Auto Trait Implementations§
impl Freeze for CapValue
impl RefUnwindSafe for CapValue
impl Send for CapValue
impl Sync for CapValue
impl Unpin for CapValue
impl UnsafeUnpin for CapValue
impl UnwindSafe for CapValue
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