pub enum Error {
Io(Error),
Layout(Error),
RegionTooSmall {
needed: usize,
found: usize,
},
Misaligned {
align: usize,
},
}Expand description
Errors returned by the indexbus-transport-shm adapter.
Variants§
Io(Error)
An I/O error occurred while opening, sizing, or mapping the backing file.
Layout(Error)
The mapped bytes do not contain a compatible v1 layout.
This includes magic/version mismatches, missing capability bits (e.g. blocking requested but wake section absent), and uninitialized layouts.
RegionTooSmall
The backing file is smaller than the required bytes for the chosen layout/options.
Fields
Misaligned
The mapping base address is not aligned as required for the layout type.
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