pub enum ResizableShmAllocationError {
MaxReallocationsReached,
ShmAllocationError(ShmAllocationError),
SharedMemoryCreateError(SharedMemoryCreateError),
}Expand description
Defines all erros that can occur when calling ResizableSharedMemory::allocate()
The ResizableSharedMemory cannot be resized indefinitely. If the resize limit is hit
this error will be returned. It can be mitigated by providing a better
ResizableSharedMemoryBuilder::max_number_of_chunks_hint() or
ResizableSharedMemoryBuilder::max_chunk_layout_hint().
Variants§
MaxReallocationsReached
ShmAllocationError(ShmAllocationError)
Trait Implementations§
Source§impl Clone for ResizableShmAllocationError
impl Clone for ResizableShmAllocationError
Source§fn clone(&self) -> ResizableShmAllocationError
fn clone(&self) -> ResizableShmAllocationError
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 moreSource§impl Debug for ResizableShmAllocationError
impl Debug for ResizableShmAllocationError
Source§impl Error for ResizableShmAllocationError
impl Error for ResizableShmAllocationError
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§fn from(v: SharedMemoryCreateError) -> Self
fn from(v: SharedMemoryCreateError) -> Self
Converts to this type from the input type.
Source§impl From<ShmAllocationError> for ResizableShmAllocationError
impl From<ShmAllocationError> for ResizableShmAllocationError
Source§fn from(v: ShmAllocationError) -> Self
fn from(v: ShmAllocationError) -> Self
Converts to this type from the input type.
Source§impl Hash for ResizableShmAllocationError
impl Hash for ResizableShmAllocationError
Source§impl PartialEq for ResizableShmAllocationError
impl PartialEq for ResizableShmAllocationError
Source§fn eq(&self, other: &ResizableShmAllocationError) -> bool
fn eq(&self, other: &ResizableShmAllocationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ResizableShmAllocationError
impl Eq for ResizableShmAllocationError
impl StructuralPartialEq for ResizableShmAllocationError
Auto Trait Implementations§
impl Freeze for ResizableShmAllocationError
impl RefUnwindSafe for ResizableShmAllocationError
impl Send for ResizableShmAllocationError
impl Sync for ResizableShmAllocationError
impl Unpin for ResizableShmAllocationError
impl UnsafeUnpin for ResizableShmAllocationError
impl UnwindSafe for ResizableShmAllocationError
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