pub enum Error {
Io(Error),
IoAt {
op: &'static str,
path: PathBuf,
source: Error,
},
Layout(Error),
RegionTooSmall {
needed: usize,
found: usize,
},
Misaligned {
align: usize,
},
}Expand description
Errors returned by this transport.
Variants§
Io(Error)
Filesystem/mapping I/O error.
IoAt
Filesystem/mapping I/O error with path context.
Fields
Layout(Error)
Mapped bytes are not a compatible/initialized v1 layout.
RegionTooSmall
Backing file is smaller than the required bytes for the chosen layout/options.
Misaligned
Mapping base address doesn’t meet the required layout alignment.
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