Struct everscale_network::overlay::Node
source · pub struct Node { /* private fields */ }Expand description
P2P messages distribution layer group
Implementations
sourceimpl Node
impl Node
pub fn new(adnl: Arc<Node>, key_tag: usize) -> Result<Arc<Self>>
pub fn query_subscriber(&self) -> Arc<dyn QuerySubscriber>
pub fn metrics(&self) -> impl Iterator<Item = (IdShort, OverlayMetrics)> + '_
sourcepub fn add_overlay_subscriber(
&self,
overlay_id: IdShort,
subscriber: Arc<dyn QuerySubscriber>
) -> bool
pub fn add_overlay_subscriber(
&self,
overlay_id: IdShort,
subscriber: Arc<dyn QuerySubscriber>
) -> bool
Add overlay queries subscriber
sourcepub fn add_public_overlay(
&self,
overlay_id: &IdShort,
options: OverlayOptions
) -> (Arc<Overlay>, bool)
pub fn add_public_overlay(
&self,
overlay_id: &IdShort,
options: OverlayOptions
) -> (Arc<Overlay>, bool)
Creates new overlay
pub fn add_private_overlay(
&self,
overlay_id: &IdShort,
overlay_key: Arc<Key>,
peers: &[NodeIdShort],
options: OverlayOptions
) -> (Arc<Overlay>, bool)
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
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