Enum nannou_osc::Error
source · pub enum Error {
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 From<OscError> for CommunicationError
impl From<OscError> for CommunicationError
source§impl<I> FromExternalError<I, OscError> for OscError
impl<I> FromExternalError<I, OscError> for OscError
source§fn from_external_error(_input: I, _kind: ErrorKind, e: OscError) -> OscError
fn from_external_error(_input: I, _kind: ErrorKind, e: OscError) -> OscError
Creates a new error from an input position, an [ErrorKind] indicating the
wrapping parser, and an external error
source§impl<I> ParseError<I> for OscError
impl<I> ParseError<I> for OscError
source§fn from_error_kind(_input: I, kind: ErrorKind) -> OscError
fn from_error_kind(_input: I, kind: ErrorKind) -> OscError
Creates an error from the input position and an [ErrorKind]
source§fn append(_input: I, _kind: ErrorKind, other: OscError) -> OscError
fn append(_input: I, _kind: ErrorKind, other: OscError) -> OscError
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