pub struct OversizedVectorError {
pub requested: usize,
pub max: usize,
}Fields§
§requested: usizerequested number of elements
max: usizemaximum number of elements
Implementations§
Trait Implementations§
Source§impl Clone for OversizedVectorError
impl Clone for OversizedVectorError
Source§fn clone(&self) -> OversizedVectorError
fn clone(&self) -> OversizedVectorError
Returns a duplicate of the value. Read more
1.0.0 · 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 OversizedVectorError
impl Debug for OversizedVectorError
Source§impl Display for OversizedVectorError
impl Display for OversizedVectorError
Source§impl Error for OversizedVectorError
impl Error for OversizedVectorError
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 From<OversizedVectorError> for ProtocolDecodingError
impl From<OversizedVectorError> for ProtocolDecodingError
Source§fn from(source: OversizedVectorError) -> Self
fn from(source: OversizedVectorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OversizedVectorError
impl PartialEq for OversizedVectorError
impl Eq for OversizedVectorError
impl StructuralPartialEq for OversizedVectorError
Auto Trait Implementations§
impl Freeze for OversizedVectorError
impl RefUnwindSafe for OversizedVectorError
impl Send for OversizedVectorError
impl Sync for OversizedVectorError
impl Unpin for OversizedVectorError
impl UnsafeUnpin for OversizedVectorError
impl UnwindSafe for OversizedVectorError
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