pub struct Variables<'x> { /* private fields */ }
Implementations§
Source§impl<'x> Variables<'x>
impl<'x> Variables<'x>
pub fn new() -> Self
pub fn set_ip(&mut self, value: &IpAddr)
pub fn set_sender(&mut self, value: impl Into<Cow<'x, [u8]>>)
pub fn set_helo_domain(&mut self, value: impl Into<Cow<'x, [u8]>>)
pub fn set_host_domain(&mut self, value: impl Into<Cow<'x, [u8]>>)
pub fn set_validated_domain(&mut self, value: impl Into<Cow<'x, [u8]>>)
pub fn set_domain(&mut self, value: impl Into<Cow<'x, [u8]>>)
pub fn get( &self, name: Variable, num_parts: u32, reverse: bool, escape: bool, fqdn: bool, delimiters: u64, ) -> Cow<'_, [u8]>
Trait Implementations§
impl<'x> Eq for Variables<'x>
impl<'x> StructuralPartialEq for Variables<'x>
Auto Trait Implementations§
impl<'x> Freeze for Variables<'x>
impl<'x> RefUnwindSafe for Variables<'x>
impl<'x> Send for Variables<'x>
impl<'x> Sync for Variables<'x>
impl<'x> Unpin for Variables<'x>
impl<'x> UnwindSafe for Variables<'x>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.