pub enum OscError {
StringError(FromUtf8Error),
ReadError(ErrorKind),
BadChar(char),
BadPacket(&'static str),
BadMessage(&'static str),
BadString(&'static str),
BadArg(String),
BadBundle(String),
BadAddressPattern(String),
BadAddress(String),
RegexError(String),
Unimplemented,
}
Expand description
Represents errors returned by decode
or encode
.
Variants§
StringError(FromUtf8Error)
ReadError(ErrorKind)
BadChar(char)
BadPacket(&'static str)
BadMessage(&'static str)
BadString(&'static str)
BadArg(String)
BadBundle(String)
BadAddressPattern(String)
BadAddress(String)
RegexError(String)
Unimplemented
Trait Implementations§
source§impl Error for OscError
impl Error for OscError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<I> FromExternalError<I, OscError> for OscError
impl<I> FromExternalError<I, OscError> for OscError
source§impl<I> ParseError<I> for OscError
impl<I> ParseError<I> for OscError
source§fn from_error_kind(_input: I, kind: ErrorKind) -> Self
fn from_error_kind(_input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
source§fn append(_input: I, _kind: ErrorKind, other: Self) -> Self
fn append(_input: I, _kind: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Auto Trait Implementations§
impl RefUnwindSafe for OscError
impl Send for OscError
impl Sync for OscError
impl Unpin for OscError
impl UnwindSafe for OscError
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