pub struct ForwardPath(/* private fields */);Expand description
SMTP forward-path.
Implementations§
Source§impl ForwardPath
impl ForwardPath
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<ForwardPath, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<ForwardPath, AddressValidationError>
Creates a forward-path from address text.
Sourcepub const fn from_address(address: EnvelopeAddress) -> ForwardPath
pub const fn from_address(address: EnvelopeAddress) -> ForwardPath
Creates a forward-path from a validated envelope address.
Sourcepub const fn address(&self) -> &EnvelopeAddress
pub const fn address(&self) -> &EnvelopeAddress
Returns the envelope address.
Trait Implementations§
Source§impl Clone for ForwardPath
impl Clone for ForwardPath
Source§fn clone(&self) -> ForwardPath
fn clone(&self) -> ForwardPath
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 ForwardPath
impl Debug for ForwardPath
Source§impl Display for ForwardPath
impl Display for ForwardPath
Source§impl Hash for ForwardPath
impl Hash for ForwardPath
Source§impl Ord for ForwardPath
impl Ord for ForwardPath
Source§fn cmp(&self, other: &ForwardPath) -> Ordering
fn cmp(&self, other: &ForwardPath) -> 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 ForwardPath
impl PartialEq for ForwardPath
Source§fn eq(&self, other: &ForwardPath) -> bool
fn eq(&self, other: &ForwardPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ForwardPath
impl PartialOrd for ForwardPath
impl Eq for ForwardPath
impl StructuralPartialEq for ForwardPath
Auto Trait Implementations§
impl Freeze for ForwardPath
impl RefUnwindSafe for ForwardPath
impl Send for ForwardPath
impl Sync for ForwardPath
impl Unpin for ForwardPath
impl UnsafeUnpin for ForwardPath
impl UnwindSafe for ForwardPath
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