Struct disarray_network::nodes::StandardNode
source · [−]pub struct StandardNode {
pub address: NetworkAddress,
pub peers: Vec<StandardPeer>,
}
Expand description
Implement a standard peer on a p2p network
Fields
address: NetworkAddress
peers: Vec<StandardPeer>
Implementations
sourceimpl StandardNode
impl StandardNode
Trait Implementations
sourceimpl Clone for StandardNode
impl Clone for StandardNode
sourcefn clone(&self) -> StandardNode
fn clone(&self) -> StandardNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for StandardNode
impl Send for StandardNode
impl Sync for StandardNode
impl Unpin for StandardNode
impl UnwindSafe for StandardNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more