Skip to main content

RedactedMapSession

Struct RedactedMapSession 

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

A nested map view that reuses one diagnostic session.

Implementations§

Source§

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

Source

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

Creates a nested map view using an existing diagnostic session.

Trait Implementations§

Source§

impl<M: RedactMapValue<K, V> + ?Sized, K: ?Sized, V: ?Sized> Debug for RedactedMapSession<'_, '_, '_, M, K, V>

Source§

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

Formats map entries through the existing diagnostic session.

Source§

impl<M: RedactMapValue<K, V> + ?Sized, K: ?Sized, V: ?Sized> Display for RedactedMapSession<'_, '_, '_, M, K, V>

Source§

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

Escapes the nested map representation for plain-text logs.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<'map, 'session, 'policy, M, K, V> UnsafeUnpin for RedactedMapSession<'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.