pub enum IoError {
LibcError(&'static str),
WindowsError(&'static str),
HostError(Error),
Raw(Scalar),
}
Expand description
A representation of an IO error: either a libc error name, or a host error.
Variants§
Trait Implementations§
Source§impl VisitProvenance for IoError
impl VisitProvenance for IoError
fn visit_provenance(&self, visit: &mut VisitWith<'_>)
Auto Trait Implementations§
impl Freeze for IoError
impl !RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl !UnwindSafe for IoError
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
LibcError
: 24 bytesWindowsError
: 24 bytesHostError
: 16 bytesRaw
: 32 bytes