pub struct Unrestricted;Expand description
No restrictions — every path is allowed as-is.
This is the default policy used by crate::register_all.
§Warning
With this policy, Lua scripts can read, write, and delete any file
accessible to the process. Do not use this policy with untrusted
scripts. Use [Sandboxed] instead.
Trait Implementations§
Source§impl Debug for Unrestricted
impl Debug for Unrestricted
Source§impl EnvPolicy for Unrestricted
impl EnvPolicy for Unrestricted
Source§fn check_get(&self, _key: &str) -> Result<(), PolicyError>
fn check_get(&self, _key: &str) -> Result<(), PolicyError>
Validate read access to env var
key. Read moreSource§fn check_set(&self, _key: &str) -> Result<(), PolicyError>
fn check_set(&self, _key: &str) -> Result<(), PolicyError>
Validate write access (overlay set) to env var
key. Read moreSource§fn policy_name(&self) -> &'static str
fn policy_name(&self) -> &'static str
Human-readable name for this policy, used in
Debug output. Read moreSource§impl HttpPolicy for Unrestricted
impl HttpPolicy for Unrestricted
Source§impl LlmPolicy for Unrestricted
impl LlmPolicy for Unrestricted
Source§fn check_request(
&self,
_provider: &str,
_model: &str,
_base_url: &str,
) -> Result<(), PolicyError>
fn check_request( &self, _provider: &str, _model: &str, _base_url: &str, ) -> Result<(), PolicyError>
Validate an LLM request before it is sent. Read more
Source§fn policy_name(&self) -> &'static str
fn policy_name(&self) -> &'static str
Human-readable name for this policy, used in
Debug output. Read moreSource§impl PathPolicy for Unrestricted
impl PathPolicy for Unrestricted
Auto Trait Implementations§
impl Freeze for Unrestricted
impl RefUnwindSafe for Unrestricted
impl Send for Unrestricted
impl Sync for Unrestricted
impl Unpin for Unrestricted
impl UnsafeUnpin for Unrestricted
impl UnwindSafe for Unrestricted
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
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