#[non_exhaustive]pub enum WriteFrameError {
Encode(EncodeError),
Io(Error),
}Expand description
Encoding or writing an outbound frame failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Encode(EncodeError)
The payload violated encoder limits.
Io(Error)
The writer failed during write_all or flush and may contain a
partial frame. The underlying LSP stream must be discarded.
Trait Implementations§
Source§impl Debug for WriteFrameError
impl Debug for WriteFrameError
Source§impl Display for WriteFrameError
impl Display for WriteFrameError
Source§impl Error for WriteFrameError
impl Error for WriteFrameError
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<EncodeError> for WriteFrameError
impl From<EncodeError> for WriteFrameError
Source§fn from(value: EncodeError) -> Self
fn from(value: EncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WriteFrameError
impl !UnwindSafe for WriteFrameError
impl Freeze for WriteFrameError
impl Send for WriteFrameError
impl Sync for WriteFrameError
impl Unpin for WriteFrameError
impl UnsafeUnpin for WriteFrameError
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