pub enum Error {
Io(Error),
QueueClosed,
InvalidIndex(u64),
CycleNotFound(i32),
StoreFileMissing(PathBuf),
CorruptedData(u64),
ReadOnly,
DirectoryCreationFailed(PathBuf),
CapacityExceeded {
position: u64,
capacity: u64,
},
LockFailed(String),
InvalidHeader(u64),
}Expand description
Errors that can occur during Queue operations.
Variants§
Io(Error)
An I/O error occurred.
QueueClosed
The queue has been closed.
InvalidIndex(u64)
An invalid index was specified.
CycleNotFound(i32)
The specified cycle was not found.
StoreFileMissing(PathBuf)
A store file is missing.
CorruptedData(u64)
Data corruption was detected.
ReadOnly
Attempted to write to a read-only queue.
DirectoryCreationFailed(PathBuf)
The queue directory could not be created.
CapacityExceeded
The write position exceeded the file capacity.
LockFailed(String)
Failed to acquire a lock.
InvalidHeader(u64)
The header is invalid or corrupted.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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