pub struct BoundedRedactedDisplay<D> { /* private fields */ }Expand description
A redacted formatting view whose log-safe output cannot exceed a byte limit.
The limit includes the complete <truncated> marker. Truncation preserves
UTF-8 character boundaries and never splits a generated escape sequence.
§Type Parameters
D- Already-redacted debug value rendered by this adapter.
Trait Implementations§
Source§impl<D: Debug> Debug for BoundedRedactedDisplay<D>
impl<D: Debug> Debug for BoundedRedactedDisplay<D>
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Writes the same bounded, log-safe representation as Display.
§Parameters
formatter- Destination formatting context.
§Returns
The formatter result for the bounded output.
§Errors
Returns fmt::Error when redacted formatting or the destination
rejects output.
Source§impl<D: Debug> Display for BoundedRedactedDisplay<D>
impl<D: Debug> Display for BoundedRedactedDisplay<D>
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Writes escaped redacted output within the configured byte budget.
§Parameters
formatter- Destination formatting context.
§Returns
The formatter result for the bounded output.
§Errors
Returns fmt::Error when redacted formatting or the destination
rejects output.
Auto Trait Implementations§
impl<D> Freeze for BoundedRedactedDisplay<D>where
D: Freeze,
impl<D> RefUnwindSafe for BoundedRedactedDisplay<D>where
D: RefUnwindSafe,
impl<D> Send for BoundedRedactedDisplay<D>where
D: Send,
impl<D> Sync for BoundedRedactedDisplay<D>where
D: Sync,
impl<D> Unpin for BoundedRedactedDisplay<D>where
D: Unpin,
impl<D> UnsafeUnpin for BoundedRedactedDisplay<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for BoundedRedactedDisplay<D>where
D: UnwindSafe,
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