pub struct ServiceInvalidStateError {
pub name: Cow<'static, str>,
pub expected: Cow<'static, str>,
pub reason: Cow<'static, str>,
}Expand description
Service invalid-state error details.
Fields§
§name: Cow<'static, str>Service key name.
expected: Cow<'static, str>Expected state or condition.
reason: Cow<'static, str>Why the state is invalid.
Implementations§
Trait Implementations§
Source§impl Debug for ServiceInvalidStateError
impl Debug for ServiceInvalidStateError
Source§impl Display for ServiceInvalidStateError
impl Display for ServiceInvalidStateError
Source§impl Error for ServiceInvalidStateError
impl Error for ServiceInvalidStateError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for ServiceInvalidStateError
impl RefUnwindSafe for ServiceInvalidStateError
impl Send for ServiceInvalidStateError
impl Sync for ServiceInvalidStateError
impl Unpin for ServiceInvalidStateError
impl UnsafeUnpin for ServiceInvalidStateError
impl UnwindSafe for ServiceInvalidStateError
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