Struct golgi::sbot::SbotConnection
source · [−]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
impl RefUnwindSafe for SbotConnection
impl Send for SbotConnection
impl Sync for SbotConnection
impl Unpin for SbotConnection
impl UnwindSafe for SbotConnection
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