Struct sn_node::Node [−][src]
pub struct Node { /* fields omitted */ }
Expand description
Main node struct.
Implementations
impl Node
[src]
impl Node
[src]pub fn our_connection_info(&self) -> SocketAddr
[src]
pub fn our_connection_info(&self) -> SocketAddr
[src]Returns our connection info.
pub async fn our_prefix(&self) -> Prefix
[src]
pub async fn our_prefix(&self) -> Prefix
[src]Returns our prefix.
pub async fn run(&mut self, network_events: EventStream) -> Result<()>
[src]
pub async fn run(&mut self, network_events: EventStream) -> Result<()>
[src]Starts the node, and runs the main event loop.
Blocks until the node is terminated, which is done
by client sending in a Command
to free it.
Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,