pub struct SbotConnection {
    pub client: ApiCaller<TcpStream>,
    pub rpc_reader: RpcReader<TcpStream>,
}
Expand description

A struct representing a connection with a running sbot. A client and an rpc_reader can together be used to make requests to the sbot and read the responses. Note there can be multiple SbotConnection at the same time.

Fields

client: ApiCaller<TcpStream>

Client for writing requests to go-bot

rpc_reader: RpcReader<TcpStream>

RpcReader object for reading responses from go-sbot

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.