pub enum PreparationError {
Policy(String),
LimitExceeded(String),
}Expand description
Typed preparation failure shared by core validation and authoring frontends.
Variants§
Implementations§
Source§impl PreparationError
impl PreparationError
pub fn is_limit_exceeded(&self) -> bool
Trait Implementations§
Source§impl Clone for PreparationError
impl Clone for PreparationError
Source§fn clone(&self) -> PreparationError
fn clone(&self) -> PreparationError
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 PreparationError
impl Debug for PreparationError
Source§impl Display for PreparationError
impl Display for PreparationError
impl Eq for PreparationError
Source§impl Error for PreparationError
impl Error for PreparationError
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 From<&str> for PreparationError
impl From<&str> for PreparationError
Source§fn from(message: &str) -> PreparationError
fn from(message: &str) -> PreparationError
Converts to this type from the input type.
Source§impl From<PreparationError> for CompilationError
impl From<PreparationError> for CompilationError
Source§fn from(error: PreparationError) -> CompilationError
fn from(error: PreparationError) -> CompilationError
Converts to this type from the input type.
Source§impl From<PreparationError> for Error
impl From<PreparationError> for Error
Source§fn from(value: PreparationError) -> Error
fn from(value: PreparationError) -> Error
Converts to this type from the input type.
Source§impl From<String> for PreparationError
impl From<String> for PreparationError
Source§fn from(message: String) -> PreparationError
fn from(message: String) -> PreparationError
Converts to this type from the input type.
Source§impl PartialEq for PreparationError
impl PartialEq for PreparationError
Source§fn eq(&self, other: &PreparationError) -> bool
fn eq(&self, other: &PreparationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreparationError
Auto Trait Implementations§
impl Freeze for PreparationError
impl RefUnwindSafe for PreparationError
impl Send for PreparationError
impl Sync for PreparationError
impl Unpin for PreparationError
impl UnsafeUnpin for PreparationError
impl UnwindSafe for PreparationError
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