pub enum ReservationError {
CapacityOverflow,
AllocError {
layout: Layout,
},
}Expand description
An error returned when capacity reservation fails.
Variants§
CapacityOverflow
Collection capacity overflow.
Is returned when a collection’s length-type L
cannot represent the resulting overall capacity.
AllocError
Allocation error.
Is returned when the underlying memory allocator fails to fulfill an allocation request.
See alloc for more information.
Trait Implementations§
Source§impl Clone for ReservationError
impl Clone for ReservationError
Source§fn clone(&self) -> ReservationError
fn clone(&self) -> ReservationError
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 ReservationError
impl Debug for ReservationError
Source§impl Display for ReservationError
impl Display for ReservationError
Source§impl Error for ReservationError
Available on crate feature std only.
impl Error for ReservationError
Available on crate feature
std only.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 ReservationError
impl PartialEq for ReservationError
impl Copy for ReservationError
impl Eq for ReservationError
impl StructuralPartialEq for ReservationError
Auto Trait Implementations§
impl Freeze for ReservationError
impl RefUnwindSafe for ReservationError
impl Send for ReservationError
impl Sync for ReservationError
impl Unpin for ReservationError
impl UnwindSafe for ReservationError
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