pub struct VerifyPeerError {
pub expected_peer_id: PeerId,
pub actual_peer_id: PeerId,
}Expand description
Peer verification error.
Fields§
§expected_peer_id: PeerIdExpected peer ID.
actual_peer_id: PeerIdActual peer ID.
Trait Implementations§
Source§impl Clone for VerifyPeerError
impl Clone for VerifyPeerError
Source§fn clone(&self) -> VerifyPeerError
fn clone(&self) -> VerifyPeerError
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 VerifyPeerError
impl Debug for VerifyPeerError
Source§impl Display for VerifyPeerError
impl Display for VerifyPeerError
Source§impl Error for VerifyPeerError
impl Error for VerifyPeerError
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<VerifyPeerError> for Error
impl From<VerifyPeerError> for Error
Source§fn from(err: VerifyPeerError) -> Self
fn from(err: VerifyPeerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VerifyPeerError
impl PartialEq for VerifyPeerError
impl Eq for VerifyPeerError
impl StructuralPartialEq for VerifyPeerError
Auto Trait Implementations§
impl Freeze for VerifyPeerError
impl RefUnwindSafe for VerifyPeerError
impl Send for VerifyPeerError
impl Sync for VerifyPeerError
impl Unpin for VerifyPeerError
impl UnwindSafe for VerifyPeerError
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