pub enum RpcCodecError {
Truncated(&'static str),
TooLarge {
field: &'static str,
actual: usize,
limit: usize,
},
InvalidUtf8(&'static str),
}Expand description
Errors from the request / response codecs.
Variants§
Truncated(&'static str)
Buffer ended mid-field.
TooLarge
Length prefix exceeds the configured maximum.
Fields
InvalidUtf8(&'static str)
String field contains non-UTF-8 bytes.
Trait Implementations§
Source§impl Debug for RpcCodecError
impl Debug for RpcCodecError
Source§impl Display for RpcCodecError
impl Display for RpcCodecError
Source§impl Error for RpcCodecError
impl Error for RpcCodecError
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()
Auto Trait Implementations§
impl Freeze for RpcCodecError
impl RefUnwindSafe for RpcCodecError
impl Send for RpcCodecError
impl Sync for RpcCodecError
impl Unpin for RpcCodecError
impl UnsafeUnpin for RpcCodecError
impl UnwindSafe for RpcCodecError
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