Enum async_smtp::smtp::ConnectionReuseParameters
source · [−]pub enum ConnectionReuseParameters {
ReuseUnlimited,
ReuseLimited(u16),
NoReuse,
}
Expand description
Configures connection reuse behavior
Variants
ReuseUnlimited
Unlimited connection reuse
ReuseLimited(u16)
Maximum number of connection reuse
NoReuse
Disable connection reuse, close connection after each transaction
Trait Implementations
sourceimpl Clone for ConnectionReuseParameters
impl Clone for ConnectionReuseParameters
sourcefn clone(&self) -> ConnectionReuseParameters
fn clone(&self) -> ConnectionReuseParameters
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 more
sourceimpl Debug for ConnectionReuseParameters
impl Debug for ConnectionReuseParameters
sourceimpl<'de> Deserialize<'de> for ConnectionReuseParameters
impl<'de> Deserialize<'de> for ConnectionReuseParameters
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ConnectionReuseParameters
impl Serialize for ConnectionReuseParameters
impl Copy for ConnectionReuseParameters
Auto Trait Implementations
impl RefUnwindSafe for ConnectionReuseParameters
impl Send for ConnectionReuseParameters
impl Sync for ConnectionReuseParameters
impl Unpin for ConnectionReuseParameters
impl UnwindSafe for ConnectionReuseParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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