pub struct RemoteProtocolError {
pub message: String,
pub code: u16,
}Expand description
Error caused by malformed peer input.
Fields§
§message: StringHuman-readable error message.
code: u16Suggested HTTP status code for this protocol error.
Trait Implementations§
Source§impl Debug for RemoteProtocolError
impl Debug for RemoteProtocolError
Source§impl Display for RemoteProtocolError
impl Display for RemoteProtocolError
Source§impl Error for RemoteProtocolError
impl Error for RemoteProtocolError
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<&str> for RemoteProtocolError
impl From<&str> for RemoteProtocolError
Source§impl From<RemoteProtocolError> for ProtocolError
impl From<RemoteProtocolError> for ProtocolError
Source§fn from(value: RemoteProtocolError) -> Self
fn from(value: RemoteProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<String> for RemoteProtocolError
impl From<String> for RemoteProtocolError
Source§impl PartialEq for RemoteProtocolError
impl PartialEq for RemoteProtocolError
impl Eq for RemoteProtocolError
impl StructuralPartialEq for RemoteProtocolError
Auto Trait Implementations§
impl Freeze for RemoteProtocolError
impl RefUnwindSafe for RemoteProtocolError
impl Send for RemoteProtocolError
impl Sync for RemoteProtocolError
impl Unpin for RemoteProtocolError
impl UnsafeUnpin for RemoteProtocolError
impl UnwindSafe for RemoteProtocolError
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