pub enum ReversePath {
Null,
Address(EnvelopeAddress),
}Expand description
SMTP reverse-path, including the null reverse-path.
Variants§
Implementations§
Source§impl ReversePath
impl ReversePath
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<ReversePath, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<ReversePath, AddressValidationError>
Creates an address reverse-path.
Sourcepub const fn null() -> ReversePath
pub const fn null() -> ReversePath
Creates a null reverse-path.
Trait Implementations§
Source§impl Clone for ReversePath
impl Clone for ReversePath
Source§fn clone(&self) -> ReversePath
fn clone(&self) -> ReversePath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReversePath
impl Debug for ReversePath
Source§impl Display for ReversePath
impl Display for ReversePath
Source§impl Hash for ReversePath
impl Hash for ReversePath
Source§impl Ord for ReversePath
impl Ord for ReversePath
Source§fn cmp(&self, other: &ReversePath) -> Ordering
fn cmp(&self, other: &ReversePath) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReversePath
impl PartialEq for ReversePath
Source§fn eq(&self, other: &ReversePath) -> bool
fn eq(&self, other: &ReversePath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReversePath
impl PartialOrd for ReversePath
impl Eq for ReversePath
impl StructuralPartialEq for ReversePath
Auto Trait Implementations§
impl Freeze for ReversePath
impl RefUnwindSafe for ReversePath
impl Send for ReversePath
impl Sync for ReversePath
impl Unpin for ReversePath
impl UnsafeUnpin for ReversePath
impl UnwindSafe for ReversePath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more