pub enum RefusalClass {
SecretPath,
OutsideRoot,
ProtectedPath,
}Expand description
Why the I/O boundary refused a path a call asked for. The trail records this class only: like every other entry, never the path, a digest of it or any content.
Variants§
SecretPath
A secret-like path (.env, key material, credential files): withheld.
OutsideRoot
Outside the project root, its trusted roots or the Workspace.
ProtectedPath
lean-ctx’s own runtime context, or a symlink inside the jail.
Implementations§
Source§impl RefusalClass
impl RefusalClass
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Stable identifier committed as reason= into the trail’s action.
Sourcepub const fn kind(self) -> SecurityKind
pub const fn kind(self) -> SecurityKind
The counted kind: a secret path is withheld content; every other class
is the path jail’s existing path_blocked.
Sourcepub fn of_jail_error(error: &PathJailError) -> Option<Self>
pub fn of_jail_error(error: &PathJailError) -> Option<Self>
The class of a path-jail refusal. A path that simply does not exist (or a malformed one) is no boundary decision and has none.
Trait Implementations§
Source§impl Clone for RefusalClass
impl Clone for RefusalClass
impl Copy for RefusalClass
Source§impl Debug for RefusalClass
impl Debug for RefusalClass
impl Eq for RefusalClass
Source§impl PartialEq for RefusalClass
impl PartialEq for RefusalClass
impl StructuralPartialEq for RefusalClass
Auto Trait Implementations§
impl Forget for RefusalClass
impl Freeze for RefusalClass
impl Move for RefusalClass
impl RefUnwindSafe for RefusalClass
impl Send for RefusalClass
impl Sync for RefusalClass
impl Unpin for RefusalClass
impl UnsafeUnpin for RefusalClass
impl UnwindSafe for RefusalClass
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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