#[non_exhaustive]pub enum Error {
Variant(Error),
InvalidBusName(String, String),
InvalidWellKnownName(String),
InvalidUniqueName(String),
InvalidInterfaceName(String),
InvalidMemberName(String),
InvalidErrorName(String),
}
Expand description
The error type for zbus_names
.
The various errors that can be reported by this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Variant(Error)
InvalidBusName(String, String)
Invalid bus name. The strings describe why the bus name is neither a valid unique nor well-known name, respectively.
InvalidWellKnownName(String)
Invalid well-known bus name.
InvalidUniqueName(String)
Invalid unique bus name.
InvalidInterfaceName(String)
Invalid interface name.
InvalidMemberName(String)
Invalid member (method or signal) name.
InvalidErrorName(String)
Invalid error name.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for Error
impl From<Error> for Error
source§fn from(val: VariantError) -> Self
fn from(val: VariantError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(i: Infallible) -> Self
fn from(i: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)