pub struct ErrorProtocolSnapshot {
pub identity: ErrorIdentity,
pub decision: ExposureDecision,
/* private fields */
}Fields§
§identity: ErrorIdentity§decision: ExposureDecisionImplementations§
Source§impl ErrorProtocolSnapshot
impl ErrorProtocolSnapshot
Sourcepub fn report(&self) -> &DiagnosticReport
pub fn report(&self) -> &DiagnosticReport
Read access to the embedded diagnostic report.
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
Render the embedded diagnostic report.
This keeps protocol-boundary consumers from having to reach through
report() just to obtain the human-facing text form.
Sourcepub fn render_redacted(&self, policy: &impl RedactPolicy) -> String
pub fn render_redacted(&self, policy: &impl RedactPolicy) -> String
Render the embedded diagnostic report after redaction.
pub fn render_user_debug(&self) -> String
pub fn render_user_debug_redacted( &self, redact_policy: &impl RedactPolicy, ) -> String
pub fn redacted(&self, policy: &impl RedactPolicy) -> Self
Trait Implementations§
Source§impl Clone for ErrorProtocolSnapshot
impl Clone for ErrorProtocolSnapshot
Source§fn clone(&self) -> ErrorProtocolSnapshot
fn clone(&self) -> ErrorProtocolSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorProtocolSnapshot
impl Debug for ErrorProtocolSnapshot
Source§impl PartialEq for ErrorProtocolSnapshot
impl PartialEq for ErrorProtocolSnapshot
impl StructuralPartialEq for ErrorProtocolSnapshot
Auto Trait Implementations§
impl Freeze for ErrorProtocolSnapshot
impl RefUnwindSafe for ErrorProtocolSnapshot
impl Send for ErrorProtocolSnapshot
impl Sync for ErrorProtocolSnapshot
impl Unpin for ErrorProtocolSnapshot
impl UnsafeUnpin for ErrorProtocolSnapshot
impl UnwindSafe for ErrorProtocolSnapshot
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