pub enum WriteError {
Quinn(WriteError),
MaxMessageSizeExceeded,
Io(Error),
}
Available on crate feature
rpc
only.Expand description
Error that can occur when writing the initial message when doing a cross-process RPC.
Variants§
Quinn(WriteError)
Error writing to the stream with quinn
MaxMessageSizeExceeded
The message exceeded the maximum allowed message size (see MAX_MESSAGE_SIZE
).
Io(Error)
Generic IO error, e.g. when serializing the message or when using other transports.
Trait Implementations§
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 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<Error> for WriteError
impl From<Error> for WriteError
Source§impl From<Error> for WriteError
impl From<Error> for WriteError
Source§impl From<WriteError> for Error
impl From<WriteError> for Error
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for Error
impl From<WriteError> for Error
Source§fn from(e: WriteError) -> Self
fn from(e: WriteError) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for WriteError
impl From<WriteError> for WriteError
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WriteError
impl !RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl !UnwindSafe for WriteError
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