Skip to main content

RedactedKeyedMapSession

Struct RedactedKeyedMapSession 

Source
pub struct RedactedKeyedMapSession<'map, 'session, 'policy, M: ?Sized, K: ?Sized = String, V: ?Sized = String> { /* private fields */ }
Expand description

A nested keyed-map view that reuses an existing diagnostic session.

Implementations§

Source§

impl<'map, 'session, 'policy, M: ?Sized, K: ?Sized, V: ?Sized> RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>

Source

pub fn new(map: &'map M, session: &'session RedactionSession<'policy>) -> Self

Creates a nested keyed-map view using an existing diagnostic session.

Trait Implementations§

Source§

impl<M: ?Sized, K: AsRef<str> + Debug + ?Sized, V: Redact + RedactValue + ?Sized> Debug for RedactedKeyedMapSession<'_, '_, '_, M, K, V>
where for<'entry> &'entry M: IntoIterator<Item = (&'entry K, &'entry V)>,

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats each entry through the existing keyed diagnostic session.

Source§

impl<M: ?Sized, K: AsRef<str> + Debug + ?Sized, V: Redact + RedactValue + ?Sized> Display for RedactedKeyedMapSession<'_, '_, '_, M, K, V>
where for<'entry> &'entry M: IntoIterator<Item = (&'entry K, &'entry V)>,

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Escapes nested keyed-map debug output for plain-text logs.

Auto Trait Implementations§

§

impl<'map, 'session, 'policy, M, K = String, V = String> !RefUnwindSafe for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>

§

impl<'map, 'session, 'policy, M, K = String, V = String> !Send for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>

§

impl<'map, 'session, 'policy, M, K = String, V = String> !Sync for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>

§

impl<'map, 'session, 'policy, M, K = String, V = String> !UnwindSafe for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>

§

impl<'map, 'session, 'policy, M, K, V> Freeze for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>
where M: ?Sized, K: ?Sized, V: ?Sized,

§

impl<'map, 'session, 'policy, M, K, V> Unpin for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>
where M: ?Sized, K: ?Sized, V: ?Sized,

§

impl<'map, 'session, 'policy, M, K, V> UnsafeUnpin for RedactedKeyedMapSession<'map, 'session, 'policy, M, K, V>
where M: ?Sized, K: ?Sized, V: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.