Enum nom_bencode::Error
source · [−]pub enum Error<I> {
InvalidInteger(I),
InvalidBytesLength(I),
ParseIntError(ParseIntError),
Utf8Error(Utf8Error),
NomError(Error<I>),
}
Variants
InvalidInteger(I)
InvalidBytesLength(I)
ParseIntError(ParseIntError)
Utf8Error(Utf8Error)
NomError(Error<I>)
Trait Implementations
sourceimpl<I> Error for Error<I> where
Error<I>: Error + 'static,
Self: Debug + Display,
impl<I> Error for Error<I> where
Error<I>: Error + 'static,
Self: Debug + Display,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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<I> From<ParseIntError> for Error<I>
impl<I> From<ParseIntError> for Error<I>
sourcefn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
sourceimpl<I> ParseError<I> for Error<I>
impl<I> ParseError<I> for Error<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for Error<I> where
I: RefUnwindSafe,
impl<I> Send for Error<I> where
I: Send,
impl<I> Sync for Error<I> where
I: Sync,
impl<I> Unpin for Error<I> where
I: Unpin,
impl<I> UnwindSafe for Error<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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