Struct mailin::SessionBuilder
source · pub struct SessionBuilder { /* private fields */ }
Expand description
Builds an smtp Session
Examples
// Create a session builder that holds the configuration
let mut builder = SessionBuilder::new("server_name");
builder.enable_start_tls()
.enable_auth();
// Then when a client connects
let mut session = builder.build(addr, handler);
Implementations
Trait Implementations
sourceimpl Clone for SessionBuilder
impl Clone for SessionBuilder
sourcefn clone(&self) -> SessionBuilder
fn clone(&self) -> SessionBuilder
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 moreAuto Trait Implementations
impl RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnwindSafe for SessionBuilder
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