Struct ibc::core::ics24_host::error::ValidationError
source · pub struct ValidationError(pub ValidationErrorDetail, pub DefaultTracer);
Tuple Fields
0: ValidationErrorDetail
1: DefaultTracer
Implementations
sourceimpl ValidationError
impl ValidationError
pub fn detail(&self) -> &ValidationErrorDetail
pub fn into_detail(self) -> ValidationErrorDetail
pub fn trace(&self) -> &DefaultTracer
pub fn into_trace(self) -> DefaultTracer
pub fn add_trace<E: Display>(self, message: &E) -> Selfwhere
DefaultTracer: ErrorMessageTracer,
pub fn trace_from<E, Cont>(source: E::Source, cont: Cont) -> Selfwhere
E: ErrorSource<DefaultTracer>,
DefaultTracer: ErrorMessageTracer,
Cont: FnOnce(E::Detail) -> ValidationErrorDetail,
sourceimpl ValidationError
impl ValidationError
pub fn contain_separator(id: String) -> ValidationError
sourceimpl ValidationError
impl ValidationError
pub fn invalid_length(
id: String,
length: usize,
min: usize,
max: usize
) -> ValidationError
sourceimpl ValidationError
impl ValidationError
pub fn invalid_character(id: String) -> ValidationError
sourceimpl ValidationError
impl ValidationError
pub fn empty() -> ValidationError
sourceimpl ValidationError
impl ValidationError
pub fn chain_id_invalid_format(id: String) -> ValidationError
Trait Implementations
sourceimpl Debug for ValidationErrorwhere
DefaultTracer: Debug,
impl Debug for ValidationErrorwhere
DefaultTracer: Debug,
sourceimpl Display for ValidationErrorwhere
DefaultTracer: Debug,
impl Display for ValidationErrorwhere
DefaultTracer: Debug,
sourceimpl Error for ValidationErrorwhere
ValidationErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
impl Error for ValidationErrorwhere
ValidationErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl ErrorSource<Report> for ValidationError
impl ErrorSource<Report> for ValidationError
type Source = ValidationError
type Source = ValidationError
The type of the error source.
type Detail = ValidationErrorDetail
type Detail = ValidationErrorDetail
The type of the error detail that can be extracted from the error source
sourcefn error_details(
ValidationError: Self
) -> (ValidationErrorDetail, Option<DefaultTracer>)
fn error_details(
ValidationError: Self
) -> (ValidationErrorDetail, Option<DefaultTracer>)
Extracts the error details out from the error source, together with
an optional error trace. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl !UnwindSafe for ValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more