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> !Freeze for TCPClient<Q, A>
impl<Q, A> RefUnwindSafe for TCPClient<Q, A>where
Q: RefUnwindSafe,
A: 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>
impl<Q, A> UnwindSafe for TCPClient<Q, A>where
Q: UnwindSafe,
A: 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