pub struct PeerError {
pub code: u32,
pub message: String,
}
Expand description
We found some issue in the communication, sending an error back, usually followed by closing the connection.
Fields§
§code: u32
error code
message: String
slightly more user friendly message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerError
impl RefUnwindSafe for PeerError
impl Send for PeerError
impl Sync for PeerError
impl Unpin for PeerError
impl UnwindSafe for PeerError
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