pub enum Error {
NoSuchDirectory,
IoError(Error),
NoFlush,
Full,
}Expand description
Defines the errors that hopper will bubble up
Hopper’s error story is pretty bare right now. Hopper should be given sole ownership over a directory and assumes such. If you look in the codebase you’ll find that there are a number cases where we bail out–to the detriment of your program–where we might be able to recover but assume that if an unkonwn condition is hit it’s a result of something foreign tainting hopper’s directory.
Variants§
NoSuchDirectory
The directory given for use does not exist
IoError(Error)
Stdlib IO Error
NoFlush
Could not flush Sender
Full
Could not write element because there is no remaining memory or disk space
Trait Implementations§
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