pub enum VirtualBufferError {
Memory(VirtualMemoryError),
Budget(MemoryError),
AuthorityMismatch {
backing: MemoryAuthorityId,
governor: MemoryAuthorityId,
},
OverCapacity {
requested: usize,
capacity: usize,
},
}Expand description
What went wrong growing or shrinking a VirtualBuffer.
Variants§
Memory(VirtualMemoryError)
The address space could not be reserved or mapped.
Budget(MemoryError)
The governor refused to lease the pages the growth needs.
AuthorityMismatch
A backing and buffer were connected to different accounting books.
Fields
§
backing: MemoryAuthorityIdAuthority that owns the backing’s physical allocations.
§
governor: MemoryAuthorityIdAuthority supplied to the buffer.
OverCapacity
The request exceeds the address space reserved at construction.
Trait Implementations§
Source§impl Debug for VirtualBufferError
impl Debug for VirtualBufferError
Source§impl Display for VirtualBufferError
impl Display for VirtualBufferError
Source§impl Error for VirtualBufferError
impl Error for VirtualBufferError
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<MemoryError> for VirtualBufferError
impl From<MemoryError> for VirtualBufferError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<VirtualMemoryError> for VirtualBufferError
impl From<VirtualMemoryError> for VirtualBufferError
Source§fn from(source: VirtualMemoryError) -> Self
fn from(source: VirtualMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VirtualBufferError
impl !UnwindSafe for VirtualBufferError
impl Freeze for VirtualBufferError
impl Send for VirtualBufferError
impl Sync for VirtualBufferError
impl Unpin for VirtualBufferError
impl UnsafeUnpin for VirtualBufferError
Blanket Implementations§
impl<T> BindingResource for T
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