pub struct JailRelaxation {
pub source: &'static str,
pub detail: &'static str,
}Expand description
A single active relaxation of the path jail. Each one widens or disables what
tools can reach beyond the project root, so it is surfaced loudly (GH security
audit, finding 3): the MCP/HTTP server inherits its process env from the
IDE/launchd, so a globally-set LEAN_CTX_ALLOW_PATH / LEAN_CTX_EXTRA_ROOTS
/ LEAN_CTX_ALLOW_IDE_DIRS (or path_jail = false) silently loosens the
boundary with no in-band signal otherwise.
Fields§
§source: &'static strThe knob that activated it (env var name, config key, or build feature).
detail: &'static strHuman-readable effect of the relaxation.
Trait Implementations§
Source§impl Clone for JailRelaxation
impl Clone for JailRelaxation
Source§fn clone(&self) -> JailRelaxation
fn clone(&self) -> JailRelaxation
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 moreimpl Copy for JailRelaxation
Source§impl Debug for JailRelaxation
impl Debug for JailRelaxation
impl Eq for JailRelaxation
Source§impl PartialEq for JailRelaxation
impl PartialEq for JailRelaxation
impl StructuralPartialEq for JailRelaxation
Auto Trait Implementations§
impl Freeze for JailRelaxation
impl RefUnwindSafe for JailRelaxation
impl Send for JailRelaxation
impl Sync for JailRelaxation
impl Unpin for JailRelaxation
impl UnsafeUnpin for JailRelaxation
impl UnwindSafe for JailRelaxation
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