pub struct IoError {
pub message: String,
pub code: i64,
}Expand description
An error from a Stream or the host’s opener, as C’s errno: strerror’s message
and the number. Scripts see nil, message, code.
Fields§
§message: StringThe message (“No such file or directory”).
code: i64The number (2), or 0.
Implementations§
Trait Implementations§
impl Eq for IoError
impl StructuralPartialEq for IoError
Auto Trait Implementations§
impl Forget for IoError
impl Freeze for IoError
impl Move for IoError
impl RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnsafeUnpin 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