pub enum MultiStreamAddress<'a> {
WebRtc {
ip: IpAddr,
port: u16,
remote_certificate_sha256: &'a [u8; 32],
},
}
Expand description
Address passed to PlatformRef::connect_multistream
.
Variants§
WebRtc
Fields
Libp2p-specific WebRTC flavour.
The implementation the PlatformRef
trait is responsible for opening the SCTP
connection. The API user of the PlatformRef
trait is responsible for opening the first
data channel and performing the Noise handshake.
Trait Implementations§
source§impl<'a> Clone for MultiStreamAddress<'a>
impl<'a> Clone for MultiStreamAddress<'a>
source§fn clone(&self) -> MultiStreamAddress<'a>
fn clone(&self) -> MultiStreamAddress<'a>
Returns a copy 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<'a> Debug for MultiStreamAddress<'a>
impl<'a> Debug for MultiStreamAddress<'a>
source§impl<'a> From<&'a MultiStreamAddress<'a>> for ConnectionType
impl<'a> From<&'a MultiStreamAddress<'a>> for ConnectionType
source§fn from(address: &'a MultiStreamAddress<'_>) -> ConnectionType
fn from(address: &'a MultiStreamAddress<'_>) -> ConnectionType
Converts to this type from the input type.
source§impl<'a> PartialEq for MultiStreamAddress<'a>
impl<'a> PartialEq for MultiStreamAddress<'a>
source§fn eq(&self, other: &MultiStreamAddress<'a>) -> bool
fn eq(&self, other: &MultiStreamAddress<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for MultiStreamAddress<'a>
impl<'a> Eq for MultiStreamAddress<'a>
impl<'a> StructuralEq for MultiStreamAddress<'a>
impl<'a> StructuralPartialEq for MultiStreamAddress<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MultiStreamAddress<'a>
impl<'a> Send for MultiStreamAddress<'a>
impl<'a> Sync for MultiStreamAddress<'a>
impl<'a> Unpin for MultiStreamAddress<'a>
impl<'a> UnwindSafe for MultiStreamAddress<'a>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.