Struct samotop::grammar::SmtpParser
source · pub struct SmtpParser;
Implementations
sourceimpl SmtpParser
impl SmtpParser
pub fn new() -> SmtpParser
pub fn session<'input>(&self, input: &'input str) -> ParseResult<Vec<SmtpInput>>
pub fn command<'input>(&self, input: &'input str) -> ParseResult<SmtpCommand>
Trait Implementations
sourceimpl Clone for SmtpParser
impl Clone for SmtpParser
sourcefn clone(&self) -> SmtpParser
fn clone(&self) -> SmtpParser
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Parser for SmtpParser
impl Parser for SmtpParser
fn command<'input>(&self, input: &'input str) -> ParseResult<SmtpCommand>
Auto Trait Implementations
impl RefUnwindSafe for SmtpParser
impl Send for SmtpParser
impl Sync for SmtpParser
impl Unpin for SmtpParser
impl UnwindSafe for SmtpParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more