pub struct PeerErrorEvent {
pub params: PeerInfo,
pub error_message: String,
}
Expand description
Fields§
§params: PeerInfo
Pair of PeerId and Token. Indicate which Peer Object is regarded.
error_message: String
Shows detail of the error.
Trait Implementations§
Source§impl Clone for PeerErrorEvent
impl Clone for PeerErrorEvent
Source§fn clone(&self) -> PeerErrorEvent
fn clone(&self) -> PeerErrorEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PeerErrorEvent
impl Debug for PeerErrorEvent
Source§impl<'de> Deserialize<'de> for PeerErrorEvent
impl<'de> Deserialize<'de> for PeerErrorEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PeerErrorEvent
impl PartialEq for PeerErrorEvent
Source§impl PartialOrd for PeerErrorEvent
impl PartialOrd for PeerErrorEvent
Source§impl Serialize for PeerErrorEvent
impl Serialize for PeerErrorEvent
impl StructuralPartialEq for PeerErrorEvent
Auto Trait Implementations§
impl Freeze for PeerErrorEvent
impl RefUnwindSafe for PeerErrorEvent
impl Send for PeerErrorEvent
impl Sync for PeerErrorEvent
impl Unpin for PeerErrorEvent
impl UnwindSafe for PeerErrorEvent
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