pub struct HoprNetwork { /* private fields */ }Trait Implementations§
Source§impl BidirectionalStreamControl for HoprNetwork
impl BidirectionalStreamControl for HoprNetwork
fn accept( self, ) -> Result<impl Stream<Item = (PeerId, impl AsyncRead + AsyncWrite + Send)> + Send, impl Error>
fn open<'async_trait>(
self,
peer: PeerId,
) -> Pin<Box<dyn Future<Output = Result<impl AsyncRead + AsyncWrite + Send, impl Error>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§impl Clone for HoprNetwork
impl Clone for HoprNetwork
Source§fn clone(&self) -> HoprNetwork
fn clone(&self) -> HoprNetwork
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 HoprNetwork
impl Debug for HoprNetwork
Source§impl NetworkObservations for HoprNetwork
impl NetworkObservations for HoprNetwork
Source§impl NetworkView for HoprNetwork
impl NetworkView for HoprNetwork
Source§fn listening_as(&self) -> HashSet<Multiaddr>
fn listening_as(&self) -> HashSet<Multiaddr>
Multiaddresses used for listening by the local node.
Source§fn discovered_peers(&self) -> HashSet<PeerId>
fn discovered_peers(&self) -> HashSet<PeerId>
Peers collected by the network discovery mechanism.
Source§fn connected_peers(&self) -> HashSet<PeerId>
fn connected_peers(&self) -> HashSet<PeerId>
Peers currently connected and tracked by the network.
Source§fn multiaddress_of(&self, peer: &PeerId) -> Option<HashSet<Multiaddr>>
fn multiaddress_of(&self, peer: &PeerId) -> Option<HashSet<Multiaddr>>
Translation of the peer into its known multiaddresses.
Source§fn observations_for(&self, peer: &PeerId) -> Option<Observations>
fn observations_for(&self, peer: &PeerId) -> Option<Observations>
Observables related to a specific peer in the network. Read more
Auto Trait Implementations§
impl Freeze for HoprNetwork
impl !RefUnwindSafe for HoprNetwork
impl Send for HoprNetwork
impl Sync for HoprNetwork
impl Unpin for HoprNetwork
impl !UnwindSafe for HoprNetwork
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more