pub enum ShmAllocationError {
ExceedsMaxSupportedAlignment,
AllocationError(AllocationError),
}Expand description
Describes the errors that can occur when ShmAllocator::allocate() is called.
Variants§
ExceedsMaxSupportedAlignment
AllocationError(AllocationError)
Trait Implementations§
Source§impl Clone for ShmAllocationError
impl Clone for ShmAllocationError
Source§fn clone(&self) -> ShmAllocationError
fn clone(&self) -> ShmAllocationError
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 ShmAllocationError
impl Debug for ShmAllocationError
Source§impl Display for ShmAllocationError
impl Display for ShmAllocationError
Source§impl Error for ShmAllocationError
impl Error for ShmAllocationError
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<AllocationError> for ShmAllocationError
impl From<AllocationError> for ShmAllocationError
Source§fn from(v: AllocationError) -> Self
fn from(v: AllocationError) -> 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 ShmAllocationError
impl Hash for ShmAllocationError
Source§impl PartialEq for ShmAllocationError
impl PartialEq for ShmAllocationError
Source§fn eq(&self, other: &ShmAllocationError) -> bool
fn eq(&self, other: &ShmAllocationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ShmAllocationError
impl Eq for ShmAllocationError
impl StructuralPartialEq for ShmAllocationError
Auto Trait Implementations§
impl Freeze for ShmAllocationError
impl RefUnwindSafe for ShmAllocationError
impl Send for ShmAllocationError
impl Sync for ShmAllocationError
impl Unpin for ShmAllocationError
impl UnsafeUnpin for ShmAllocationError
impl UnwindSafe for ShmAllocationError
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