Struct git_transport::client::capabilities::Capability [−][src]
The name of a single capability.
Implementations
impl<'a> Capability<'a>
[src]
pub fn name(&self) -> &BStr
[src]
Returns the name of the capability.
Most capabilities only consist of a name, making them appear like a feature toggle.
pub fn value(&self) -> Option<&BStr>
[src]
Returns the value associated with the capability.
Note that the caller must know whether a single or multiple values are expected, in which
case values()
should be called.
pub fn values(&self) -> Option<impl Iterator<Item = &BStr>>
[src]
Returns the values of a capability if its value()
is space separated.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Capability<'a>
impl<'a> Send for Capability<'a>
impl<'a> Sync for Capability<'a>
impl<'a> Unpin for Capability<'a>
impl<'a> UnwindSafe for Capability<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,