pub enum PolicyLayerError {
EmptyRunId,
UnsafeRunId,
RunIdMismatch {
expected: String,
actual: String,
},
EmptyDecisionLog,
InvalidJson {
line: usize,
source: Error,
},
UnexpectedEventType {
line: usize,
observed_type: Option<String>,
},
MissingRequiredField {
line: usize,
field: String,
},
CapabilitySurface(CapabilitySurfaceError),
Json(Error),
}Variants§
EmptyRunId
UnsafeRunId
RunIdMismatch
EmptyDecisionLog
InvalidJson
UnexpectedEventType
MissingRequiredField
CapabilitySurface(CapabilitySurfaceError)
Json(Error)
Trait Implementations§
Source§impl Debug for PolicyLayerError
impl Debug for PolicyLayerError
Source§impl Display for PolicyLayerError
impl Display for PolicyLayerError
Source§impl Error for PolicyLayerError
impl Error for PolicyLayerError
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 From<CapabilitySurfaceError> for PolicyLayerError
impl From<CapabilitySurfaceError> for PolicyLayerError
Source§fn from(source: CapabilitySurfaceError) -> PolicyLayerError
fn from(source: CapabilitySurfaceError) -> PolicyLayerError
Converts to this type from the input type.
Source§impl From<Error> for PolicyLayerError
impl From<Error> for PolicyLayerError
Source§fn from(source: Error) -> PolicyLayerError
fn from(source: Error) -> PolicyLayerError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyLayerError
impl !RefUnwindSafe for PolicyLayerError
impl Send for PolicyLayerError
impl Sync for PolicyLayerError
impl Unpin for PolicyLayerError
impl UnsafeUnpin for PolicyLayerError
impl !UnwindSafe for PolicyLayerError
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