pub enum SetFromBytesError {
MisalignedLength {
len: usize,
elem_size: usize,
},
PayloadTooLarge {
len: usize,
max: usize,
},
}Expand description
Error returned when raw column bytes fail validation in
AnyVec::set_from_bytes.
Variants§
MisalignedLength
The byte length is not an exact multiple of the column’s element size, so it cannot describe a whole number of elements.
Fields
PayloadTooLarge
The byte length exceeds MAX_COLUMN_PAYLOAD_BYTES.
Trait Implementations§
Source§impl Clone for SetFromBytesError
impl Clone for SetFromBytesError
Source§fn clone(&self) -> SetFromBytesError
fn clone(&self) -> SetFromBytesError
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 SetFromBytesError
impl Debug for SetFromBytesError
Source§impl Display for SetFromBytesError
impl Display for SetFromBytesError
Source§impl Error for SetFromBytesError
impl Error for SetFromBytesError
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 SetFromBytesError
impl PartialEq for SetFromBytesError
Source§fn eq(&self, other: &SetFromBytesError) -> bool
fn eq(&self, other: &SetFromBytesError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SetFromBytesError
impl StructuralPartialEq for SetFromBytesError
Auto Trait Implementations§
impl Freeze for SetFromBytesError
impl RefUnwindSafe for SetFromBytesError
impl Send for SetFromBytesError
impl Sync for SetFromBytesError
impl Unpin for SetFromBytesError
impl UnsafeUnpin for SetFromBytesError
impl UnwindSafe for SetFromBytesError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.