[−][src]Enum memur::UploadError
Error while trying to place data in arena block.
Variants
Droplist does not fit in a block.
Arena has drop lists to efficiently execute item drop functions, and they hold around 1000 items at minimum.
Solution: increase block size.
Item does not fit in a block.
If there is not enough space in a block, then another block is allocated. This error occurs only if the item is bigger than the maximum possible free space in a block.
Solution: handle this error and do not store items that are too big or increase block size.
Metadata does not fit in a block.
Arena stores its metadata in the first block. This metadata contains pointers to first/last
droplists, memory block (yeah a bit circular here), weak and total reference counts.
This error occurs when this metadata does not fit in a block, and should happen on Arena
initialization only.
Solution: increase block size.
Arena was dropped.
The main Arena
is dropped and the drop function may have been executed for any containing item.
This action is not available.
Solution: ensure arena objects are not accessed after the arena is dropped and handle this error.
Trait Implementations
impl Debug for UploadError
[src]
impl Display for UploadError
[src]
impl Error for UploadError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<UploadError> for UStrError
[src]
fn from(other: UploadError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for UploadError
impl Send for UploadError
impl Sync for UploadError
impl Unpin for UploadError
impl UnwindSafe for UploadError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,