pub struct InvalidCapacity(pub usize);Expand description
Error returned by ring when capacity is zero or not a power of two.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for InvalidCapacity
impl Clone for InvalidCapacity
Source§fn clone(&self) -> InvalidCapacity
fn clone(&self) -> InvalidCapacity
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 moreimpl Copy for InvalidCapacity
Source§impl Debug for InvalidCapacity
impl Debug for InvalidCapacity
Source§impl Display for InvalidCapacity
impl Display for InvalidCapacity
impl Eq for InvalidCapacity
Source§impl Error for InvalidCapacity
impl Error for InvalidCapacity
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 InvalidCapacity
impl PartialEq for InvalidCapacity
impl StructuralPartialEq for InvalidCapacity
Auto Trait Implementations§
impl Freeze for InvalidCapacity
impl RefUnwindSafe for InvalidCapacity
impl Send for InvalidCapacity
impl Sync for InvalidCapacity
impl Unpin for InvalidCapacity
impl UnsafeUnpin for InvalidCapacity
impl UnwindSafe for InvalidCapacity
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