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) -> PathRefusal
pub fn secret_path(message: String) -> PathRefusal
The refusal of the secret-path I/O boundary (enforce mode).
Sourcepub fn jail(error: &PathJailError) -> PathRefusal
pub fn jail(error: &PathJailError) -> PathRefusal
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
Source§impl From<String> for PathRefusal
impl From<String> for PathRefusal
Source§fn from(message: String) -> PathRefusal
fn from(message: String) -> PathRefusal
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for PathRefusal
impl Freeze for PathRefusal
impl Move for PathRefusal
impl RefUnwindSafe for PathRefusal
impl Send for PathRefusalwhere
RawVecInner: Send,
impl Sync for PathRefusalwhere
RawVecInner: Sync,
impl Unpin for PathRefusal
impl UnsafeUnpin for PathRefusal
impl UnwindSafe for PathRefusalwhere
RawVecInner: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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