Enum Protocol Error
pub enum ProtocolError {
TooLarge,
Malformed,
UnknownType(String),
UnsupportedVersion(u64),
UnknownKey(String),
ReadOnly(String),
InvalidValue(String),
}Expand description
Reasons an editor message is rejected. Nothing is applied.
Variants§
TooLarge
Malformed
Not a JSON object, or a required field is missing or has the wrong type.
UnknownType(String)
UnsupportedVersion(u64)
UnknownKey(String)
ReadOnly(String)
Read-only parameters cannot be edited.
InvalidValue(String)
The value is not finite.
Trait Implementations§
§impl Clone for ProtocolError
impl Clone for ProtocolError
§fn clone(&self) -> ProtocolError
fn clone(&self) -> ProtocolError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ProtocolError
impl Debug for ProtocolError
§impl Display for ProtocolError
impl Display for ProtocolError
impl Eq for ProtocolError
§impl Error for ProtocolError
impl Error for ProtocolError
1.30.0 · §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 · §fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for ProtocolError
impl PartialEq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
Blanket Implementations§
impl<T> AutoreleaseSafe for T
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more