Struct glycos::net::NodeFacade [−][src]
pub struct NodeFacade {
pub bootstrap_tx: Sender<((), Sender<()>)>,
pub add_address_tx: Sender<((PeerId, Vec<Multiaddr>), Sender<()>)>,
pub store_vertex_tx: Sender<(Vertex, Sender<()>)>,
pub store_edge_tx: Sender<(Edge, Sender<()>)>,
pub search_vertex_tx: Sender<(Key, Sender<Option<(Vertex, Vec<Edge>)>>)>,
pub connection_count_tx: Sender<((), Sender<usize>)>,
pub local_addr_tx: Sender<((), Sender<(PeerId, Vec<Multiaddr>)>)>,
pub(super) handle: Arc<JoinHandle<()>>,
pub(super) local_peer_id: PeerId,
}Fields
bootstrap_tx: Sender<((), Sender<()>)>add_address_tx: Sender<((PeerId, Vec<Multiaddr>), Sender<()>)>store_vertex_tx: Sender<(Vertex, Sender<()>)>store_edge_tx: Sender<(Edge, Sender<()>)>search_vertex_tx: Sender<(Key, Sender<Option<(Vertex, Vec<Edge>)>>)>connection_count_tx: Sender<((), Sender<usize>)>local_addr_tx: Sender<((), Sender<(PeerId, Vec<Multiaddr>)>)>handle: Arc<JoinHandle<()>>local_peer_id: PeerIdImplementations
pub fn add_address(
&mut self,
input: (PeerId, Vec<Multiaddr>)
) -> impl Future<Output = Result<(), Error>>
pub fn search_vertex(
&mut self,
input: Key
) -> impl Future<Output = Result<Option<(Vertex, Vec<Edge>)>, Error>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeFacade
impl Send for NodeFacade
impl Sync for NodeFacade
impl Unpin for NodeFacade
impl !UnwindSafe for NodeFacade
Blanket Implementations
Mutably borrows from an owned value. Read more
