pub struct PeerConnectionEvent {
pub params: PeerInfo,
pub data_params: DataConnectionIdWrapper,
}
Expand description
Shows that the Peer Object receives a request to establish DataConnection with neighbour.
DataConnection is automatically established when the request comes.
Fields
params: PeerInfo
Pair of PeerId and Token. Indicate which Peer Object is regarded.
data_params: DataConnectionIdWrapper
Id to identify the DataConnection
Trait Implementations
sourceimpl Clone for PeerConnectionEvent
impl Clone for PeerConnectionEvent
sourcefn clone(&self) -> PeerConnectionEvent
fn clone(&self) -> PeerConnectionEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PeerConnectionEvent
impl Debug for PeerConnectionEvent
sourceimpl<'de> Deserialize<'de> for PeerConnectionEvent
impl<'de> Deserialize<'de> for PeerConnectionEvent
sourcefn 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
sourceimpl PartialEq<PeerConnectionEvent> for PeerConnectionEvent
impl PartialEq<PeerConnectionEvent> for PeerConnectionEvent
sourcefn eq(&self, other: &PeerConnectionEvent) -> bool
fn eq(&self, other: &PeerConnectionEvent) -> bool
sourceimpl PartialOrd<PeerConnectionEvent> for PeerConnectionEvent
impl PartialOrd<PeerConnectionEvent> for PeerConnectionEvent
sourcefn partial_cmp(&self, other: &PeerConnectionEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &PeerConnectionEvent) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for PeerConnectionEvent
impl Serialize for PeerConnectionEvent
impl StructuralPartialEq for PeerConnectionEvent
Auto Trait Implementations
impl RefUnwindSafe for PeerConnectionEvent
impl Send for PeerConnectionEvent
impl Sync for PeerConnectionEvent
impl Unpin for PeerConnectionEvent
impl UnwindSafe for PeerConnectionEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more