pub struct PathRefusal {
pub message: String,
pub class: Option<RefusalClass>,
}Expand description
A path that did not resolve: the message the caller returns, and the
boundary class when the I/O boundary refused it (None for a path that is
merely missing or malformed). The class is what the audit trail records.
Fields§
§message: String§class: Option<RefusalClass>Implementations§
Source§impl PathRefusal
impl PathRefusal
Sourcepub fn secret_path(message: String) -> Self
pub fn secret_path(message: String) -> Self
The refusal of the secret-path I/O boundary (enforce mode).
Sourcepub fn jail(error: &PathJailError) -> Self
pub fn jail(error: &PathJailError) -> Self
The refusal of the path jail, classified by
crate::core::security_events::RefusalClass::of_jail_error.
Trait Implementations§
Source§impl Debug for PathRefusal
impl Debug for PathRefusal
Auto Trait Implementations§
impl Forget for PathRefusal
impl Freeze for PathRefusal
impl Move for PathRefusal
impl RefUnwindSafe for PathRefusal
impl Send for PathRefusal
impl Sync for PathRefusal
impl Unpin for PathRefusal
impl UnsafeUnpin for PathRefusal
impl UnwindSafe for PathRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more