Struct ic_web3_rs::api::Net
source · 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> 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