pub enum BufferError {
Page(PageError),
PageNoLongerAvailable,
CallbackError(Box<dyn Debug + Send + Sync + 'static>),
MutexPoisoned,
}Expand description
Errors that can occur when working with buffers.
Variants§
Page(PageError)
An error occurred during a page operation.
PageNoLongerAvailable
The page is no longer available.
CallbackError(Box<dyn Debug + Send + Sync + 'static>)
An error occurred in a callback function.
MutexPoisoned
A mutex was poisoned.
Implementations§
Source§impl BufferError
impl BufferError
Sourcepub fn callback_error<E: Debug + Send + Sync + 'static>(e: E) -> Self
pub fn callback_error<E: Debug + Send + Sync + 'static>(e: E) -> Self
Creates a CallbackError from any Debug + Send + Sync error.
Trait Implementations§
Source§impl Debug for BufferError
impl Debug for BufferError
Source§impl Display for BufferError
impl Display for BufferError
Source§impl Error for BufferError
impl Error for BufferError
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()
Auto Trait Implementations§
impl Freeze for BufferError
impl !RefUnwindSafe for BufferError
impl Send for BufferError
impl Sync for BufferError
impl Unpin for BufferError
impl !UnwindSafe for BufferError
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