pub struct CompatWarning {
pub category: &'static str,
pub message: String,
}Expand description
A warning emitted during pproxy compatibility translation.
Fields§
§category: &'static strShort category tag (e.g. “unsupported-scheme”, “partial-behavior”).
message: StringHuman-readable message (credentials are redacted).
Implementations§
Source§impl CompatWarning
impl CompatWarning
Sourcepub fn diagnostic_code(&self) -> DiagnosticCode
pub fn diagnostic_code(&self) -> DiagnosticCode
Return the DiagnosticCode that best classifies this warning.
Trait Implementations§
Source§impl Clone for CompatWarning
impl Clone for CompatWarning
Source§fn clone(&self) -> CompatWarning
fn clone(&self) -> CompatWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompatWarning
impl Debug for CompatWarning
Source§impl Display for CompatWarning
impl Display for CompatWarning
Source§impl From<&CompatWarning> for StructuredDiagnostic
impl From<&CompatWarning> for StructuredDiagnostic
Source§fn from(warn: &CompatWarning) -> Self
fn from(warn: &CompatWarning) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CompatWarning
impl PartialEq for CompatWarning
impl StructuralPartialEq for CompatWarning
Auto Trait Implementations§
impl Freeze for CompatWarning
impl RefUnwindSafe for CompatWarning
impl Send for CompatWarning
impl Sync for CompatWarning
impl Unpin for CompatWarning
impl UnsafeUnpin for CompatWarning
impl UnwindSafe for CompatWarning
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