pub struct Node<SE, PA>(/* private fields */);Expand description
A participant in the Ankurah network, and primary place where queries are initiated
Implementations§
Trait Implementations§
Source§impl<SE: StorageEngine + Send + Sync + 'static, PA: PolicyAgent + Send + Sync + 'static> NodeComms for Node<SE, PA>
impl<SE: StorageEngine + Send + Sync + 'static, PA: PolicyAgent + Send + Sync + 'static> NodeComms for Node<SE, PA>
fn id(&self) -> NodeId
fn durable(&self) -> bool
fn register_peer(&self, presence: Presence, sender: Box<dyn PeerSender>)
fn deregister_peer(&self, node_id: NodeId)
fn handle_message<'life0, 'async_trait>(
&'life0 self,
message: NodeMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cloned(&self) -> Box<dyn NodeComms>
Source§impl<SE, PA> TNodeErased for Node<SE, PA>
impl<SE, PA> TNodeErased for Node<SE, PA>
fn unsubscribe(&self, handle: &SubscriptionHandle)
Auto Trait Implementations§
impl<SE, PA> Freeze for Node<SE, PA>
impl<SE, PA> !RefUnwindSafe for Node<SE, PA>
impl<SE, PA> Send for Node<SE, PA>
impl<SE, PA> Sync for Node<SE, PA>
impl<SE, PA> Unpin for Node<SE, PA>
impl<SE, PA> !UnwindSafe for Node<SE, PA>
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