Struct git_transport::client::capabilities::Capability[][src]

pub struct Capability<'a>(_);

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.