Struct ssb_client::Client
[−]
[src]
pub struct Client<R: AsyncRead, W>(_);
An ssb client. This struct is used to send rpcs to the server.
Methods
impl<R: AsyncRead, W: AsyncWrite> Client<R, W>
[src]
pub fn close(self) -> Close<R, W>
[src]
Close the connection to the server. If there are still active rpcs, it is not closed immediately. It will get closed once the last of them is done.
pub fn muxrpc(&mut self) -> &mut RpcOut<R, W>
[src]
Give access to the underlying muxrpc RpcOut
, to send rpcs which are not directly
supported by this module.
pub fn whoami(&mut self) -> (SendRpc<W>, Whoami<R>)
[src]
Query information about the current user.
pub fn get<T: DeserializeOwned>(
&mut self,
id: MessageId
) -> (SendRpc<W>, Get<R, T>)
[src]
&mut self,
id: MessageId
) -> (SendRpc<W>, Get<R, T>)
Get a Message
of type T
by its MessageId
..