Struct sn_node::Node [−][src]
pub struct Node { /* fields omitted */ }
Expand description
Main node struct.
Implementations
impl Node
[src]
impl Node
[src]pub async fn update_replicas(&mut self) -> Result<()>
[src]
pub async fn update_replicas(&mut self) -> Result<()>
[src]If we are an oldie we’ll have a transfer instance, This updates the replica info on it.
pub async fn synch_state(
&mut self,
node_wallets: BTreeMap<XorName, (NodeAge, PublicKey)>,
user_wallets: BTreeMap<PublicKey, ActorHistory>,
metadata: DataExchange
) -> Result<NodeDuty>
[src]
pub async fn synch_state(
&mut self,
node_wallets: BTreeMap<XorName, (NodeAge, PublicKey)>,
user_wallets: BTreeMap<PublicKey, ActorHistory>,
metadata: DataExchange
) -> Result<NodeDuty>
[src]Continue the level up and handle more responsibilities.
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.
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>,