pub enum ResponseWriterError {
AlreadyCommitted,
NotCommitted,
InitializedLengthTooLarge,
}Expand description
Response-writer state violation.
Variants§
AlreadyCommitted
The transport has already committed this response.
NotCommitted
The transport has not committed this response.
InitializedLengthTooLarge
The committed initialized length exceeds the admitted body capacity.
Trait Implementations§
Source§impl Clone for ResponseWriterError
impl Clone for ResponseWriterError
Source§fn clone(&self) -> ResponseWriterError
fn clone(&self) -> ResponseWriterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResponseWriterError
Source§impl Debug for ResponseWriterError
impl Debug for ResponseWriterError
Source§impl Display for ResponseWriterError
impl Display for ResponseWriterError
impl Eq for ResponseWriterError
Source§impl Error for ResponseWriterError
impl Error for ResponseWriterError
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 PartialEq for ResponseWriterError
impl PartialEq for ResponseWriterError
impl StructuralPartialEq for ResponseWriterError
Auto Trait Implementations§
impl Freeze for ResponseWriterError
impl RefUnwindSafe for ResponseWriterError
impl Send for ResponseWriterError
impl Sync for ResponseWriterError
impl Unpin for ResponseWriterError
impl UnsafeUnpin for ResponseWriterError
impl UnwindSafe for ResponseWriterError
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