Struct samotop::smtp::SmtpState[][src]

pub struct SmtpState {
    pub service: Box<dyn SyncMailService + 'static, Global>,
    pub session: SessionInfo,
    pub transaction: Transaction,
    pub writes: VecDeque<CodecControl>,
}

Fields

service: Box<dyn SyncMailService + 'static, Global>session: SessionInfotransaction: Transactionwrites: VecDeque<CodecControl>

Implementations

impl SmtpState[src]

pub fn new(service: impl MailService + Send + Sync + 'static) -> SmtpState[src]

pub fn reset_helo(&mut self, peer_name: String)[src]

pub fn reset(&mut self)[src]

impl SmtpState[src]

pub fn say(&mut self, what: CodecControl)[src]

pub fn say_reply(&mut self, c: SmtpReply)[src]

pub fn say_ok(&mut self)[src]

pub fn say_ok_info(&mut self, info: String)[src]

pub fn say_not_implemented(&mut self)[src]

pub fn say_invalid_syntax(&mut self)[src]

pub fn say_command_sequence_fail(&mut self)[src]

pub fn say_service_ready(&mut self, name: String)[src]

pub fn say_helo(&mut self, local: String, remote: String)[src]

pub fn say_ehlo(
    &mut self,
    local: String,
    extensions: Vec<String, Global>,
    remote: String
)
[src]

pub fn say_shutdown(&mut self, reply: SmtpReply)[src]

pub fn say_shutdown_err(&mut self, description: String)[src]

pub fn say_shutdown_ok(&mut self, description: String)[src]

pub fn say_mail_failed(
    &mut self,
    failure: StartMailFailure,
    description: String
)
[src]

pub fn say_rcpt_failed(
    &mut self,
    failure: AddRecipientFailure,
    _description: String
)
[src]

pub fn say_ok_recipient_not_local(&mut self, path: SmtpPath)[src]

pub fn say_mail_queue_refused(&mut self)[src]

pub fn say_start_data_challenge(
    &mut self,
    parser: Box<dyn Parser + 'static + Send + Sync, Global>
)
[src]

pub fn say_start_tls(&mut self, name: String)[src]

pub fn say_mail_queue_failed_temporarily(&mut self)[src]

pub fn say_mail_queued(&mut self, id: &str)[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> 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>,