Skip to main content

Capability

Enum Capability 

Source
pub enum Capability {
Show 21 variants EXPN, Help, EightBitMIME, Size(u32), Chunking, BinaryMIME, Checkpoint, DeliverBy, Pipelining, DSN, ETRN, EnhancedStatusCodes, StartTLS, MTRK, ATRN, Auth(Vec<AuthMechanism>), BURL, SMTPUTF8, RRVS, RequireTLS, Other { keyword: String, params: Vec<String>, },
}

Variants§

§

EXPN

Verbose [Eric Allman] One message transaction only [Eric Allman] Expand the mailing list [RFC821] Command description updated by [RFC5321]

§

Help

Supply helpful information [RFC821] Command description updated by [RFC5321]

§

EightBitMIME

SMTP and Submit transport of 8bit MIME content [RFC6152]

§

Size(u32)

Message size declaration [RFC1870]

§

Chunking

Chunking [RFC3030]

§

BinaryMIME

Binary MIME [RFC3030]

§

Checkpoint

Checkpoint/Restart [RFC1845]

§

DeliverBy

Deliver By [RFC2852]

§

Pipelining

Command Pipelining [RFC2920]

§

DSN

Delivery Status Notification [RFC3461]

§

ETRN

Extended Turn [RFC1985] SMTP [RFC5321] only. Not for use on Submit port 587.

§

EnhancedStatusCodes

Enhanced Status Codes [RFC2034]

§

StartTLS

Start TLS [RFC3207]

§

MTRK

Notification of no soliciting [RFC3865] Message Tracking [RFC3885]

§

ATRN

Authenticated TURN [RFC2645] SMTP [RFC5321] only. Not for use on Submit port 587.

§

Auth(Vec<AuthMechanism>)

Authentication [RFC4954]

§

BURL

Remote Content [RFC4468] Submit [RFC6409] only. Not for use with SMTP on port 25.

§

SMTPUTF8

Future Message Release [RFC4865] Content Conversion Permission [RFC4141] Content Conversion Negotiation [RFC4141] Internationalized email address [RFC6531]

§

RRVS

Priority Message Handling [RFC6710] Require Recipient Valid Since [RFC7293]

§

RequireTLS

Require TLS [RFC8689]

§

Other

Other

Fields

§keyword: String
§params: Vec<String>

Implementations§

Source§

impl Capability

Source

pub fn serialize(&self, writer: &mut impl Write) -> Result<()>

Trait Implementations§

Source§

impl Clone for Capability

Source§

fn clone(&self) -> Capability

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Capability

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Capability

Source§

impl PartialEq for Capability

Source§

fn eq(&self, other: &Capability) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Capability

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.