pub struct Net<T> { /* private fields */ }
Expand description
Net
namespace
Implementations§
Source§impl<T: Transport> Net<T>
impl<T: Transport> Net<T>
Sourcepub fn version(&self, options: CallOptions) -> CallFuture<String, T::Out> ⓘ
pub fn version(&self, options: CallOptions) -> CallFuture<String, T::Out> ⓘ
Returns the network id.
Sourcepub fn peer_count(&self, options: CallOptions) -> CallFuture<U256, T::Out> ⓘ
pub fn peer_count(&self, options: CallOptions) -> CallFuture<U256, T::Out> ⓘ
Returns number of peers connected to node.
Sourcepub fn is_listening(&self, options: CallOptions) -> CallFuture<bool, T::Out> ⓘ
pub fn is_listening(&self, options: CallOptions) -> CallFuture<bool, T::Out> ⓘ
Whether the node is listening for network connections
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Net<T>where
T: Freeze,
impl<T> RefUnwindSafe for Net<T>where
T: RefUnwindSafe,
impl<T> Send for Net<T>where
T: Send,
impl<T> Sync for Net<T>where
T: Sync,
impl<T> Unpin for Net<T>where
T: Unpin,
impl<T> UnwindSafe for Net<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more