pub enum PreparationCapacityError {
TargetTooSmall,
BodyTooSmall,
AllocationFailed,
}Expand description
Failure while selecting or allocating preparation storage.
Variants§
TargetTooSmall
Request-target storage does not satisfy the selected profile.
BodyTooSmall
Request-body storage does not satisfy the selected profile.
AllocationFailed
The allocator rejected the requested bounded profile.
Trait Implementations§
Source§impl Clone for PreparationCapacityError
impl Clone for PreparationCapacityError
Source§fn clone(&self) -> PreparationCapacityError
fn clone(&self) -> PreparationCapacityError
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 PreparationCapacityError
Source§impl Debug for PreparationCapacityError
impl Debug for PreparationCapacityError
Source§impl Display for PreparationCapacityError
impl Display for PreparationCapacityError
impl Eq for PreparationCapacityError
Source§impl Error for PreparationCapacityError
impl Error for PreparationCapacityError
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 PreparationCapacityError
impl PartialEq for PreparationCapacityError
impl StructuralPartialEq for PreparationCapacityError
Auto Trait Implementations§
impl Freeze for PreparationCapacityError
impl RefUnwindSafe for PreparationCapacityError
impl Send for PreparationCapacityError
impl Sync for PreparationCapacityError
impl Unpin for PreparationCapacityError
impl UnsafeUnpin for PreparationCapacityError
impl UnwindSafe for PreparationCapacityError
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