#[non_exhaustive]pub enum InitializeError {
Malformed,
}Expand description
Why an initialize could not be read.
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.
Malformed
The request named nothing usable.
One variant for every failure rather than one per field, because no caller can act on the difference: every one of them is answered to the peer as an invalid request, and splitting them would produce five variants that are always mapped to the same thing.
Trait Implementations§
Source§impl Clone for InitializeError
impl Clone for InitializeError
impl Copy for InitializeError
Source§impl Debug for InitializeError
impl Debug for InitializeError
Source§impl Display for InitializeError
impl Display for InitializeError
impl Eq for InitializeError
Source§impl Error for InitializeError
impl Error for InitializeError
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§impl PartialEq for InitializeError
impl PartialEq for InitializeError
impl StructuralPartialEq for InitializeError
Auto Trait Implementations§
impl Freeze for InitializeError
impl RefUnwindSafe for InitializeError
impl Send for InitializeError
impl Sync for InitializeError
impl Unpin for InitializeError
impl UnsafeUnpin for InitializeError
impl UnwindSafe for InitializeError
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