[][src]Struct rsasl::Mechanisms

pub struct Mechanisms { /* fields omitted */ }

A String representing a list of Mechanisms

Gsasl uses the concept of 'string of Mechanism, separated by invalid characters such as SPC' in several locations. This struct allows to easier de-/construct such values.

Implementations

impl Mechanisms[src]

pub fn from_sasl(inner: SaslString) -> Self[src]

pub fn iter(&self) -> impl Iterator<Item = &str>[src]

Iterate over the mechanisms

pub fn as_slice(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn as_raw_ptr(&self) -> *const c_char[src]

Convert the Mechanism List into a C pointer

Trait Implementations

impl<B: AsRef<str>> FromIterator<B> for Mechanisms[src]

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, 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.