pub enum NoError {}
Expand description
A special error type for a method that doesn’t have any defined error return. You can’t actually encounter a value of this type in real life; it’s here to satisfy type requirements.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoError
impl<'de> Deserialize<'de> for NoError
Source§fn deserialize<D: Deserializer<'de>>(_: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(_: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for NoError
impl Error for NoError
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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for NoError
Auto Trait Implementations§
impl Freeze for NoError
impl RefUnwindSafe for NoError
impl Send for NoError
impl Sync for NoError
impl Unpin for NoError
impl UnwindSafe for NoError
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