pub enum AgentPolicyError {
ZeroMaxLimit,
ZeroMaxContextBytes,
ZeroMaxRuntime,
}Expand description
Stable policy validation error.
Variants§
Trait Implementations§
Source§impl Clone for AgentPolicyError
impl Clone for AgentPolicyError
Source§fn clone(&self) -> AgentPolicyError
fn clone(&self) -> AgentPolicyError
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 moreSource§impl Debug for AgentPolicyError
impl Debug for AgentPolicyError
Source§impl Display for AgentPolicyError
impl Display for AgentPolicyError
Source§impl Error for AgentPolicyError
impl Error for AgentPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AgentPolicyError
impl PartialEq for AgentPolicyError
Source§fn eq(&self, other: &AgentPolicyError) -> bool
fn eq(&self, other: &AgentPolicyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AgentPolicyError
impl StructuralPartialEq for AgentPolicyError
Auto Trait Implementations§
impl Freeze for AgentPolicyError
impl RefUnwindSafe for AgentPolicyError
impl Send for AgentPolicyError
impl Sync for AgentPolicyError
impl Unpin for AgentPolicyError
impl UnsafeUnpin for AgentPolicyError
impl UnwindSafe for AgentPolicyError
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