Struct rustun::client::TcpClient
[−]
[src]
pub struct TcpClient(_);
A Client trait implementation which uses TcpClientTransport as the transport layer.
Methods
impl TcpClient
[src]
fn new<S: Spawn>(spawner: S, server: SocketAddr) -> InitTcpClient<S>
Makes a future that results in a TcpClient
instance which communicates with server
.
Trait Implementations
impl Client for TcpClient
[src]
type CallRaw = TcpCallRaw
Future
type to handle a request/response transaction using RawMessage
.
type CastRaw = TcpCastRaw
Future
type to handle a indication transaction using RawMessage
.
fn call_raw(&mut self, message: RawMessage) -> Self::CallRaw
Makes a Future
that sends the raw request message to a server and waits the response from it. Read more
fn cast_raw(&mut self, message: RawMessage) -> Self::CastRaw
Makes a Future
that sends the raw indication message to a server.
fn call<M, A>(&mut self, message: Request<M, A>) -> Call<M, A, Self::CallRaw> where
M: Method,
A: Attribute,
M: Method,
A: Attribute,
Makes a Future
that sends the request message to a server and waits the response from it. Read more
fn cast<M, A>(&mut self, message: Indication<M, A>) -> Cast<Self::CastRaw> where
M: Method,
A: Attribute,
M: Method,
A: Attribute,
Makes a Future
that sends the indication message to a server.