pub enum ReadStringError {
ReadBytes {
location: Location,
source: ReadBytesError,
},
InvalidUtf8 {
location: Location,
source: FromUtf8Error,
},
}Variants§
Trait Implementations§
Source§impl Debug for ReadStringError
impl Debug for ReadStringError
Source§impl Display for ReadStringError
impl Display for ReadStringError
Source§impl Error for ReadStringError
impl Error for ReadStringError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ReadStringError
impl ErrorCompat for ReadStringError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl ErrorExt for ReadStringError
impl ErrorExt for ReadStringError
Source§impl ResponseError for ReadStringError
impl ResponseError for ReadStringError
fn as_status(&self) -> StatusCode
fn status_codes(codes: &mut BTreeSet<StatusCode>)
fn as_response(&self) -> Response
fn responses( schemas: &mut BTreeMap<String, Schema>, schemas_in_progress: &mut Vec<String>, ) -> BTreeMap<StatusCode, Response>
Auto Trait Implementations§
impl Freeze for ReadStringError
impl !RefUnwindSafe for ReadStringError
impl Send for ReadStringError
impl Sync for ReadStringError
impl Unpin for ReadStringError
impl !UnwindSafe for ReadStringError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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