pub enum NewsError {
BundleDecoding(Error),
NonUtf8(FromUtf8Error),
Cbor(Error),
SmazDecompress(DecompressError),
EndpointIdInvalid(EndpointIdError),
NoMessage,
NoTopic,
InvalidEndpoint,
PayloadMissing,
InvalidNewsBundle,
}
Variants
BundleDecoding(Error)
NonUtf8(FromUtf8Error)
Cbor(Error)
SmazDecompress(DecompressError)
EndpointIdInvalid(EndpointIdError)
NoMessage
NoTopic
InvalidEndpoint
PayloadMissing
InvalidNewsBundle
Trait Implementations
sourceimpl Error for NewsError
impl Error for NewsError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecompressError> for NewsError
impl From<DecompressError> for NewsError
sourcefn from(source: DecompressError) -> Self
fn from(source: DecompressError) -> Self
Converts to this type from the input type.
sourceimpl From<EndpointIdError> for NewsError
impl From<EndpointIdError> for NewsError
sourcefn from(source: EndpointIdError) -> Self
fn from(source: EndpointIdError) -> Self
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for NewsError
impl From<FromUtf8Error> for NewsError
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for NewsError
impl Send for NewsError
impl Sync for NewsError
impl Unpin for NewsError
impl !UnwindSafe for NewsError
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