#[non_exhaustive]pub enum ContactTransformError {
SourceTooLarge {
bytes: usize,
limit: usize,
},
Invalid {
message: String,
},
LimitExceeded {
field: &'static str,
found: usize,
limit: usize,
},
CanonicalTooLarge {
limit: usize,
},
Fragment(ContactFragmentError),
}Expand description
A strict result could not be decoded, represented, or verified.
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.
SourceTooLarge
Input exceeded the immutable source-byte cap.
Invalid
JSON or a strict wire invariant was invalid.
LimitExceeded
A row cap was exceeded.
Fields
CanonicalTooLarge
Canonical output exceeded its immutable cap.
Fragment(ContactFragmentError)
The embedded contact fragment was invalid.
Trait Implementations§
Source§impl Clone for ContactTransformError
impl Clone for ContactTransformError
Source§fn clone(&self) -> ContactTransformError
fn clone(&self) -> ContactTransformError
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 moreSource§impl Debug for ContactTransformError
impl Debug for ContactTransformError
Source§impl Display for ContactTransformError
impl Display for ContactTransformError
impl Eq for ContactTransformError
Source§impl Error for ContactTransformError
impl Error for ContactTransformError
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 From<ContactFragmentError> for ContactTransformError
impl From<ContactFragmentError> for ContactTransformError
Source§fn from(source: ContactFragmentError) -> Self
fn from(source: ContactFragmentError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContactTransformError
impl PartialEq for ContactTransformError
impl StructuralPartialEq for ContactTransformError
Auto Trait Implementations§
impl Freeze for ContactTransformError
impl RefUnwindSafe for ContactTransformError
impl Send for ContactTransformError
impl Sync for ContactTransformError
impl Unpin for ContactTransformError
impl UnsafeUnpin for ContactTransformError
impl UnwindSafe for ContactTransformError
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