pub struct InboundRoutingHint(/* private fields */);Expand description
Opaque, redacted routing material captured before an inbound adapter normalizes its signaling event.
This value intentionally implements neither Display nor serialization.
Callers must explicitly opt in to reading it through Self::expose_secret.
Implementations§
Source§impl InboundRoutingHint
impl InboundRoutingHint
pub fn new( value: impl Into<String>, ) -> Result<InboundRoutingHint, InboundContextError>
Sourcepub fn expose_secret(&self) -> &str
pub fn expose_secret(&self) -> &str
Reveal the routing hint to the policy layer that will consume it. Avoid formatting or logging the returned value.
Sourcepub fn into_secret(self) -> String
pub fn into_secret(self) -> String
Transfer the owned routing material to the policy layer.
The returned String remains sensitive and its final owner must
zeroize it. The wrapper’s Drop implementation clears any value that
is not explicitly transferred.
Trait Implementations§
Source§impl Debug for InboundRoutingHint
impl Debug for InboundRoutingHint
Source§impl Drop for InboundRoutingHint
impl Drop for InboundRoutingHint
impl Eq for InboundRoutingHint
Source§impl PartialEq for InboundRoutingHint
impl PartialEq for InboundRoutingHint
impl StructuralPartialEq for InboundRoutingHint
Auto Trait Implementations§
impl Freeze for InboundRoutingHint
impl RefUnwindSafe for InboundRoutingHint
impl Send for InboundRoutingHint
impl Sync for InboundRoutingHint
impl Unpin for InboundRoutingHint
impl UnsafeUnpin for InboundRoutingHint
impl UnwindSafe for InboundRoutingHint
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.