pub struct WriteError {
pub kind: WriteErrorKind,
pub backtrace: Backtrace,
}Fields§
§kind: WriteErrorKind§backtrace: BacktraceImplementations§
Source§impl WriteError
impl WriteError
pub fn unimplemented() -> Self
pub fn number_too_big(n: u64) -> Self
pub fn custom(message: impl Into<Box<str>>) -> Self
Trait Implementations§
Source§impl Clone for WriteError
impl Clone for WriteError
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
Source§impl Error for WriteError
impl Error for WriteError
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access)Provides type-based access to context intended for error reports. Read more
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<!> for WriteError
impl From<!> for WriteError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for Error
impl From<WriteError> for Error
Source§fn from(error: WriteError) -> Self
fn from(error: WriteError) -> Self
Converts to this type from the input type.
Source§impl From<WriteErrorKind> for WriteError
impl From<WriteErrorKind> for WriteError
Source§fn from(kind: WriteErrorKind) -> Self
fn from(kind: WriteErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WriteError
impl Forget for WriteError
impl Move for WriteError
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnsafeUnpin for WriteErrorwhere
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<BacktraceFrame>: UnsafeUnpin,
impl FnOnce() -> Capture + Send + Sync + UnwindSafe: UnsafeUnpin,
impl UnwindSafe for WriteErrorwhere
BoxRaw<str>: UnwindSafe,
LazyLock<Capture, impl FnOnce() -> Capture + Send + Sync + UnwindSafe>: UnwindSafe,
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