pub struct AllocError {
pub requested: u64,
pub what: Reservation,
}Expand description
A host allocator refusal, kept by value without a heap-owned source.
requested is the failed request or a documented reservation estimate.
The tag attributes the request; it does not claim that a meter owns it.
Before a meter exists, fixed Environment storage is attributed to Input.
Fields§
§requested: u64Failed request size or reservation estimate, in bytes.
what: ReservationThe load or provider that requested the storage.
Trait Implementations§
Source§impl Clone for AllocError
impl Clone for AllocError
impl Copy for AllocError
Source§impl Debug for AllocError
impl Debug for AllocError
Source§impl Display for AllocError
impl Display for AllocError
impl Eq for AllocError
Source§impl Error for AllocError
impl Error for AllocError
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<AllocError> for DetectError
impl From<AllocError> for DetectError
Source§fn from(source: AllocError) -> Self
fn from(source: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<AllocError> for DerefError
impl From<AllocError> for DerefError
Source§fn from(error: AllocError) -> Self
fn from(error: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<AllocError> for Error
impl From<AllocError> for Error
Source§fn from(source: AllocError) -> Self
fn from(source: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<AllocError> for ChargeError
impl From<AllocError> for ChargeError
Source§fn from(source: AllocError) -> Self
fn from(source: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<AllocError> for TreeError
impl From<AllocError> for TreeError
Source§fn from(error: AllocError) -> Self
fn from(error: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<AllocError> for ReadDetail
impl From<AllocError> for ReadDetail
Source§fn from(error: AllocError) -> Self
fn from(error: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<AllocError> for ParseError
impl From<AllocError> for ParseError
Source§fn from(error: AllocError) -> Self
fn from(error: AllocError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AllocError
impl PartialEq for AllocError
impl StructuralPartialEq for AllocError
Auto Trait Implementations§
impl Forget for AllocError
impl Freeze for AllocError
impl Move for AllocError
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnsafeUnpin for AllocError
impl UnwindSafe for AllocError
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