pub enum CreationError {
Nul(NulError),
Ffi,
}
Expand description
An error that can happen when trying to create an XDo
instance.
Variants§
Nul(NulError)
The provided string parameter had an interior null byte in it.
Ffi
Libxdo failed to create an instance. No further information available.
Trait Implementations§
Source§impl Debug for CreationError
impl Debug for CreationError
Source§impl Display for CreationError
impl Display for CreationError
Source§impl Error for CreationError
impl Error for CreationError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<NulError> for CreationError
impl From<NulError> for CreationError
Source§fn from(err: NulError) -> CreationError
fn from(err: NulError) -> CreationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreationError
impl RefUnwindSafe for CreationError
impl Send for CreationError
impl Sync for CreationError
impl Unpin for CreationError
impl UnwindSafe for CreationError
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