Struct samotop::smtp::ExtensionSet[][src]

pub struct ExtensionSet { /* fields omitted */ }

Implementations

impl ExtensionSet[src]

pub fn new() -> ExtensionSet[src]

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

pub fn get<T>(&self, ext: &T) -> Result<Option<<T as Extension>::Value>, Error> where
    T: Extension
[src]

pub fn get_string(&'s self, code: &str) -> Option<&'s str>[src]

pub fn is_enabled<T>(&self, ext: &T) -> bool where
    T: Extension
[src]

pub fn is_enabled_code(&self, code: &str) -> bool[src]

pub fn enable<T>(&mut self, ext: &T) -> bool where
    T: ExtensionValue
[src]

pub fn enable_string(&mut self, code: &str, ext: &str) -> bool[src]

pub fn disable<T>(&mut self, ext: &T) -> bool where
    T: Extension
[src]

pub fn disable_code(&mut self, code: &str) -> bool[src]

Trait Implementations

impl Clone for ExtensionSet[src]

impl Debug for ExtensionSet[src]

impl Default for ExtensionSet[src]

impl Eq for ExtensionSet[src]

impl PartialEq<ExtensionSet> for ExtensionSet[src]

impl StructuralEq for ExtensionSet[src]

impl StructuralPartialEq for ExtensionSet[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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,