Struct tcp_message_io::TCPClient
source · pub struct TCPClient<Q, A>where
Q: SerializeMessage,
A: SerializeMessage,{ /* private fields */ }
Expand description
Client to make TCP requests in the form of messages.
Messages can be any serializable object. This library uses a 9-byte header to encode the size of the serialized data sent and the result.
By default, postcard is used as wire serialization format
Implementations§
source§impl<Q, A> TCPClient<Q, A>where
Q: SerializeMessage,
A: SerializeMessage,
impl<Q, A> TCPClient<Q, A>where Q: SerializeMessage, A: SerializeMessage,
Auto Trait Implementations§
impl<Q, A> RefUnwindSafe for TCPClient<Q, A>where A: RefUnwindSafe, Q: RefUnwindSafe,
impl<Q, A> Send for TCPClient<Q, A>
impl<Q, A> Sync for TCPClient<Q, A>
impl<Q, A> Unpin for TCPClient<Q, A>where A: Unpin, Q: Unpin,
impl<Q, A> UnwindSafe for TCPClient<Q, A>where A: UnwindSafe, Q: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more