use core::fmt::{self, Display}; use core::result; #[cfg(feature = "std")] use std::{error, io};
#[derive(Debug)] /// A custom Scroll error pubenum Error { /// The type you tried to read was too big
TooBig {
size: usize,
len: usize,
}, /// The requested offset to read/write at is invalid
BadOffset(usize),
BadInput {
size: usize,
msg: &'static str,
}, /// A custom Scroll error for reporting messages to clients. /// For no-std, use [`Error::BadInput`] with a static string. #[cfg(feature = "std")]
Custom(String), /// Returned when IO based errors are encountered #[cfg(feature = "std")]
IO(io::Error),
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.