Struct transmog_async::Builder
source · [−]pub struct Builder<TReads, TWrites, TStream, TFormat> { /* private fields */ }
Expand description
Builder helper to specify types without the need of turbofishing.
Implementations
pub fn sends_and_receives<T>(self) -> Builder<T, T, TStream, TFormat> where
TFormat: Format<'static, T>,
pub fn sends_and_receives<T>(self) -> Builder<T, T, TStream, TFormat> where
TFormat: Format<'static, T>,
Sets T
as the type for both sending and receiving.
pub fn for_async(
self
) -> TransmogStream<TReads, TWrites, TStream, AsyncDestination, TFormat>
pub fn for_async(
self
) -> TransmogStream<TReads, TWrites, TStream, AsyncDestination, TFormat>
Build this stream to include the serialized data’s size before each serialized value.
This is necessary for compatability with a remote TransmogReader
.
Build this stream only send Transmog-encoded values.
This is necessary for compatability with stock Transmog receivers.