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§
Source§impl Clone for PeerConnectionEvent
impl Clone for PeerConnectionEvent
Source§fn clone(&self) -> PeerConnectionEvent
fn clone(&self) -> PeerConnectionEvent
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 PeerConnectionEvent
impl Debug for PeerConnectionEvent
Source§impl<'de> Deserialize<'de> for PeerConnectionEvent
impl<'de> Deserialize<'de> for PeerConnectionEvent
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 PeerConnectionEvent
impl PartialEq for PeerConnectionEvent
Source§impl PartialOrd for PeerConnectionEvent
impl PartialOrd for PeerConnectionEvent
Source§impl Serialize for PeerConnectionEvent
impl Serialize for PeerConnectionEvent
impl StructuralPartialEq for PeerConnectionEvent
Auto Trait Implementations§
impl Freeze for PeerConnectionEvent
impl RefUnwindSafe for PeerConnectionEvent
impl Send for PeerConnectionEvent
impl Sync for PeerConnectionEvent
impl Unpin for PeerConnectionEvent
impl UnwindSafe for PeerConnectionEvent
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