[][src]Struct brokaw::types::response::Capabilities

pub struct Capabilities(_);

Server capabilities

Implementations

impl Capabilities[src]

pub fn iter(&self) -> Iter[src]

An iterator over the capabilities

pub fn get(&self, key: impl AsRef<str>) -> Option<&Capability>[src]

Retrieve a capability if it exists

Trait Implementations

impl Clone for Capabilities[src]

impl Debug for Capabilities[src]

impl Eq for Capabilities[src]

impl PartialEq<Capabilities> for Capabilities[src]

impl StructuralEq for Capabilities[src]

impl StructuralPartialEq for Capabilities[src]

impl<'_> TryFrom<&'_ RawResponse> for Capabilities[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(resp: &RawResponse) -> Result<Self>[src]

Parse capabilities from a response

The specific format is taken from RFC 3977

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.