Struct parity_rpc::v1::NetClient
source · [−]pub struct NetClient<S: ?Sized> { /* private fields */ }
Expand description
Net rpc implementation.
Implementations
sourceimpl<S: ?Sized> NetClient<S> where
S: SyncProvider,
impl<S: ?Sized> NetClient<S> where
S: SyncProvider,
Trait Implementations
sourceimpl<S: ?Sized> Net for NetClient<S> where
S: SyncProvider + 'static,
impl<S: ?Sized> Net for NetClient<S> where
S: SyncProvider + 'static,
sourcefn peer_count(&self) -> Result<String>
fn peer_count(&self) -> Result<String>
Returns number of peers connected to node.
sourcefn is_listening(&self) -> Result<bool>
fn is_listening(&self) -> Result<bool>
Returns true if client is actively listening for network connections. Otherwise false. Read more
sourcefn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Create an IoDelegate
, wiring rpc calls to the trait methods.
Auto Trait Implementations
impl<S: ?Sized> RefUnwindSafe for NetClient<S> where
S: RefUnwindSafe,
impl<S: ?Sized> Send for NetClient<S> where
S: Send + Sync,
impl<S: ?Sized> Sync for NetClient<S> where
S: Send + Sync,
impl<S: ?Sized> Unpin for NetClient<S>
impl<S: ?Sized> UnwindSafe for NetClient<S> where
S: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more