pub struct WrongStateError {
pub expected: &'static str,
pub actual: &'static str,
}Expand description
Failure caused by asking a shared container for the wrong state marker.
Fields§
§expected: &'static strRequested state or union marker type name.
actual: &'static strCommitted concrete state type name.
Trait Implementations§
Source§impl Clone for WrongStateError
impl Clone for WrongStateError
Source§fn clone(&self) -> WrongStateError
fn clone(&self) -> WrongStateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WrongStateError
Source§impl Debug for WrongStateError
impl Debug for WrongStateError
Source§impl Display for WrongStateError
impl Display for WrongStateError
impl Eq for WrongStateError
Source§impl Error for WrongStateError
Available on crate feature std only.
impl Error for WrongStateError
Available on crate feature
std only.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()
Source§fn from(error: WrongStateError) -> Self
fn from(error: WrongStateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WrongStateError
impl PartialEq for WrongStateError
Source§fn eq(&self, other: &WrongStateError) -> bool
fn eq(&self, other: &WrongStateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WrongStateError
Auto Trait Implementations§
impl Freeze for WrongStateError
impl RefUnwindSafe for WrongStateError
impl Send for WrongStateError
impl StateClone for WrongStateError
impl StateCopy for WrongStateError
impl Sync for WrongStateError
impl Unpin for WrongStateError
impl UnsafeUnpin for WrongStateError
impl UnwindSafe for WrongStateError
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