[][src]Struct tmkms::client::Client

pub struct Client { /* fields omitted */ }

Client connections: wraps a thread which makes a connection to a particular validator node and then receives RPCs.

The Client type does not deal with network I/O, that is handled inside of the Session. Instead, the Client type manages threading and respawning sessions in the event of errors.

Methods

impl Client[src]

pub fn spawn(config: ValidatorConfig, should_term: Arc<AtomicBool>) -> Self[src]

Spawn a new client, returning a handle so it can be joined

pub fn join(self)[src]

Wait for a running client to finish

Auto Trait Implementations

impl Send for Client

impl Unpin for Client

impl Sync for Client

impl !UnwindSafe for Client

impl !RefUnwindSafe for Client

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self