pub struct Builder<TReads, TWrites, TStream, TFormat> { /* fields omitted */ }
Expand description
Builder helper to specify types without the need of turbofishing.
impl<TStream, TFormat> Builder<(), (), TStream, TFormat>
Returns a new stream builder for stream
and format
.
impl<TStream, TFormat> Builder<(), (), TStream, TFormat>
Sets T
as the type for both sending and receiving.
impl<TReads, TStream, TFormat> Builder<TReads, (), TStream, TFormat>
Sets T
as the type of data that is written to this stream.
impl<TWrites, TStream, TFormat> Builder<(), TWrites, TStream, TFormat>
Sets T
as the type of data that is read from this stream.
impl<TReads, TWrites, TStream, TFormat> Builder<TReads, TWrites, TStream, TFormat> where
TFormat: Clone,
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.
impl<TReads, TWrites, TStream, TFormat> Send for Builder<TReads, TWrites, TStream, TFormat> where
TFormat: Send,
TReads: Send,
TStream: Send,
TWrites: Send,
impl<TReads, TWrites, TStream, TFormat> Sync for Builder<TReads, TWrites, TStream, TFormat> where
TFormat: Sync,
TReads: Sync,
TStream: Sync,
TWrites: Sync,
impl<TReads, TWrites, TStream, TFormat> Unpin for Builder<TReads, TWrites, TStream, TFormat> where
TFormat: Unpin,
TReads: Unpin,
TStream: Unpin,
TWrites: Unpin,
impl<TReads, TWrites, TStream, TFormat> UnwindSafe for Builder<TReads, TWrites, TStream, TFormat> where
TFormat: UnwindSafe,
TReads: UnwindSafe,
TStream: UnwindSafe,
TWrites: UnwindSafe,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.