pub enum TextParseError {
BaseConversionError {
field: &'static str,
error: BaseConversionError,
},
BlockstampParseError(BlockstampParseError),
CompactDoc {
field: &'static str,
error: ParseCompactDocError,
},
InvalidInnerFormat(String),
IpAddrError(AddrParseError),
PestError(PestError),
UnexpectedRule(String),
UnexpectedVersion(String),
UnknownType,
}Expand description
List of possible errors while parsing a text document.
Variants§
BaseConversionError
Base 16/58/64 convertion error
BlockstampParseError(BlockstampParseError)
Fail to parse blockstamp
CompactDoc
Fail to parse compact doc
InvalidInnerFormat(String)
The given source don’t have a valid specific document format (document type).
IpAddrError(AddrParseError)
Ip address parse error
PestError(PestError)
Error with pest parser
UnexpectedRule(String)
Unexpected rule
UnexpectedVersion(String)
Unexpected version
UnknownType
Unknown type
Trait Implementations§
Source§impl Clone for TextParseError
impl Clone for TextParseError
Source§fn clone(&self) -> TextParseError
fn clone(&self) -> TextParseError
Returns a duplicate of the value. Read more
1.0.0 · 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 TextParseError
impl Debug for TextParseError
Source§impl Display for TextParseError
impl Display for TextParseError
Source§impl Error for TextParseError
impl Error for TextParseError
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<AddrParseError> for TextParseError
impl From<AddrParseError> for TextParseError
Source§fn from(e: AddrParseError) -> Self
fn from(e: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<PestError> for TextParseError
impl From<PestError> for TextParseError
Source§impl PartialEq for TextParseError
impl PartialEq for TextParseError
impl Eq for TextParseError
impl StructuralPartialEq for TextParseError
Auto Trait Implementations§
impl Freeze for TextParseError
impl RefUnwindSafe for TextParseError
impl Send for TextParseError
impl Sync for TextParseError
impl Unpin for TextParseError
impl UnwindSafe for TextParseError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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