[][src]Enum sasl::common::ChannelBinding

pub enum ChannelBinding {
    None,
    Unsupported,
    TlsUnique(Vec<u8>),
}

Channel binding configuration.

Variants

None

No channel binding data.

Unsupported

Advertise that the client does not think the server supports channel binding.

TlsUnique(Vec<u8>)

p=tls-unique channel binding data.

Implementations

impl ChannelBinding[src]

pub fn header(&self) -> &[u8][src]

Return the gs2 header for this channel binding mechanism.

pub fn data(&self) -> &[u8][src]

Return the channel binding data for this channel binding mechanism.

pub fn supports(&self, mechanism: &str) -> bool[src]

Checks whether this channel binding mechanism is supported.

Trait Implementations

impl Clone for ChannelBinding[src]

impl Debug for ChannelBinding[src]

impl Eq for ChannelBinding[src]

impl PartialEq<ChannelBinding> for ChannelBinding[src]

impl StructuralEq for ChannelBinding[src]

impl StructuralPartialEq for ChannelBinding[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> Same<T> for T

type Output = T

Should always be Self

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.