Enum libwmctl::ErrorWrapper
source · [−]pub enum ErrorWrapper {
WmCtl(WmCtlError),
Utf8(Utf8Error),
Connect(ConnectError),
Connection(ConnectionError),
Reply(ReplyError),
}Expand description
ErrorWrapper provides wrapper around all the underlying library dependencys that libwmctl uses
such that we can easily surface all errors from libwmctdl in a single easy way.
Variants
WmCtl(WmCtlError)
Utf8(Utf8Error)
Connect(ConnectError)
Connection(ConnectionError)
Reply(ReplyError)
Implementations
sourceimpl ErrorWrapper
impl ErrorWrapper
sourcepub fn is<T: StdError + 'static>(&self) -> bool
pub fn is<T: StdError + 'static>(&self) -> bool
Implemented directly on the Error type to reduce casting required
sourcepub fn downcast_ref<T: StdError + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: StdError + 'static>(&self) -> Option<&T>
Implemented directly on the Error type to reduce casting required
sourcepub fn downcast_mut<T: StdError + 'static>(&mut self) -> Option<&mut T>
pub fn downcast_mut<T: StdError + 'static>(&mut self) -> Option<&mut T>
Implemented directly on the Error type to reduce casting required
Trait Implementations
sourceimpl AsMut<dyn Error + 'static> for ErrorWrapper
impl AsMut<dyn Error + 'static> for ErrorWrapper
sourceimpl AsRef<dyn Error + 'static> for ErrorWrapper
impl AsRef<dyn Error + 'static> for ErrorWrapper
sourceimpl Debug for ErrorWrapper
impl Debug for ErrorWrapper
sourceimpl Display for ErrorWrapper
impl Display for ErrorWrapper
sourceimpl Error for ErrorWrapper
impl Error for ErrorWrapper
1.30.0 · 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>
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
use the Display impl or to_string()
sourceimpl From<ConnectError> for ErrorWrapper
impl From<ConnectError> for ErrorWrapper
sourcefn from(err: ConnectError) -> ErrorWrapper
fn from(err: ConnectError) -> ErrorWrapper
Converts to this type from the input type.
sourceimpl From<ConnectionError> for ErrorWrapper
impl From<ConnectionError> for ErrorWrapper
sourcefn from(err: ConnectionError) -> ErrorWrapper
fn from(err: ConnectionError) -> ErrorWrapper
Converts to this type from the input type.
sourceimpl From<ReplyError> for ErrorWrapper
impl From<ReplyError> for ErrorWrapper
sourcefn from(err: ReplyError) -> ErrorWrapper
fn from(err: ReplyError) -> ErrorWrapper
Converts to this type from the input type.
sourceimpl From<Utf8Error> for ErrorWrapper
impl From<Utf8Error> for ErrorWrapper
sourcefn from(err: Utf8Error) -> ErrorWrapper
fn from(err: Utf8Error) -> ErrorWrapper
Converts to this type from the input type.
sourceimpl From<WmCtlError> for ErrorWrapper
impl From<WmCtlError> for ErrorWrapper
sourcefn from(err: WmCtlError) -> ErrorWrapper
fn from(err: WmCtlError) -> ErrorWrapper
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorWrapper
impl Send for ErrorWrapper
impl Sync for ErrorWrapper
impl Unpin for ErrorWrapper
impl !UnwindSafe for ErrorWrapper
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more