pub enum ServiceError {
InvalidTransition(&'static str),
Dependency(&'static str),
Implementation(&'static str),
}Expand description
Generic error type for service operations.
The fabric itself never allocates or performs I/O in order to create error values. Services are free to define richer error enums and convert them into this type if needed.
This type uses &'static str messages to remain allocation-free and
no_std-friendly.
Variants§
InvalidTransition(&'static str)
The requested transition was not compatible with the current state.
Dependency(&'static str)
A required dependency was not in a compatible state.
Implementation(&'static str)
An implementation-specific failure.
Trait Implementations§
Source§impl Clone for ServiceError
impl Clone for ServiceError
Source§fn clone(&self) -> ServiceError
fn clone(&self) -> ServiceError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl PartialEq for ServiceError
impl PartialEq for ServiceError
impl Copy for ServiceError
impl Eq for ServiceError
impl StructuralPartialEq for ServiceError
Auto Trait Implementations§
impl Freeze for ServiceError
impl RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl UnsafeUnpin for ServiceError
impl UnwindSafe for ServiceError
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