Enum relay_protocol::ErrorKind
source · pub enum ErrorKind {
InvalidData,
MissingAttribute,
InvalidAttribute,
ValueTooLong,
ClockDrift,
PastTimestamp,
FutureTimestamp,
Unknown(String),
}
Expand description
The kind of an Error
.
Variants§
InvalidData
The data does not fit the schema or is semantically incorrect.
MissingAttribute
The structure is missing a required attribute.
InvalidAttribute
The attribute is not allowed in this structure.
ValueTooLong
This value was too long and removed entirely.
ClockDrift
Clock-drift of the SDK has been corrected in all timestamps.
PastTimestamp
The timestamp is too old.
FutureTimestamp
The timestamp lies in the future, likely due to clock drift.
Unknown(String)
Any other unknown error for forward compatibility.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorKind
impl<'de> Deserialize<'de> for ErrorKind
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)