Struct safe_network::node::Node
source · [−]pub struct Node { /* private fields */ }
Expand description
Main node struct.
Implementations
pub async fn new(
config: &NodeConfig,
joining_timeout: Duration
) -> Result<(Self, EventStream)>
pub async fn new(
config: &NodeConfig,
joining_timeout: Duration
) -> Result<(Self, EventStream)>
Initialize a new node.
Returns our connection info.
Returns our prefix.
Returns the network’s genesis key.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more