pub struct ForwardPolicyName(/* private fields */);Expand description
Stable identifier for a forwarding policy, surfaced into audit records and diagnostics.
ForwardPolicyName wraps a &'static str because the v1 named policies
are compile-time constants. Custom impls construct their names via
ForwardPolicyName::new (a const fn), so naming remains structural.
Implementations§
Trait Implementations§
Source§impl Clone for ForwardPolicyName
impl Clone for ForwardPolicyName
Source§fn clone(&self) -> ForwardPolicyName
fn clone(&self) -> ForwardPolicyName
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 ForwardPolicyName
impl Debug for ForwardPolicyName
Source§impl Deserialize<'static> for ForwardPolicyName
impl Deserialize<'static> for ForwardPolicyName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ForwardPolicyName
impl Display for ForwardPolicyName
Source§impl Hash for ForwardPolicyName
impl Hash for ForwardPolicyName
Source§impl PartialEq for ForwardPolicyName
impl PartialEq for ForwardPolicyName
Source§fn eq(&self, other: &ForwardPolicyName) -> bool
fn eq(&self, other: &ForwardPolicyName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForwardPolicyName
impl Serialize for ForwardPolicyName
impl Copy for ForwardPolicyName
impl Eq for ForwardPolicyName
impl StructuralPartialEq for ForwardPolicyName
Auto Trait Implementations§
impl Freeze for ForwardPolicyName
impl RefUnwindSafe for ForwardPolicyName
impl Send for ForwardPolicyName
impl Sync for ForwardPolicyName
impl Unpin for ForwardPolicyName
impl UnsafeUnpin for ForwardPolicyName
impl UnwindSafe for ForwardPolicyName
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