pub struct Builder<TReads, TWrites, TStream, TFormat> { /* private fields */ }
Expand description
Builder helper to specify types without the need of turbofishing.
Implementations§
Source§impl<TStream, TFormat> Builder<(), (), TStream, TFormat>
impl<TStream, TFormat> Builder<(), (), TStream, TFormat>
Sourcepub 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.
Source§impl<TReads, TWrites, TStream, TFormat> Builder<TReads, TWrites, TStream, TFormat>where
TFormat: Clone,
impl<TReads, TWrites, TStream, TFormat> Builder<TReads, TWrites, TStream, TFormat>where
TFormat: Clone,
Sourcepub 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
.
Sourcepub fn for_sync(
self,
) -> TransmogStream<TReads, TWrites, TStream, SyncDestination, TFormat>
pub fn for_sync( self, ) -> TransmogStream<TReads, TWrites, TStream, SyncDestination, TFormat>
Build this stream only send Transmog-encoded values.
This is necessary for compatability with stock Transmog receivers.
Auto Trait Implementations§
impl<TReads, TWrites, TStream, TFormat> Freeze for Builder<TReads, TWrites, TStream, TFormat>
impl<TReads, TWrites, TStream, TFormat> RefUnwindSafe for Builder<TReads, TWrites, TStream, TFormat>where
TStream: RefUnwindSafe,
TFormat: RefUnwindSafe,
TReads: RefUnwindSafe,
TWrites: RefUnwindSafe,
impl<TReads, TWrites, TStream, TFormat> Send for Builder<TReads, TWrites, TStream, TFormat>
impl<TReads, TWrites, TStream, TFormat> Sync for Builder<TReads, TWrites, TStream, TFormat>
impl<TReads, TWrites, TStream, TFormat> Unpin for Builder<TReads, TWrites, TStream, TFormat>
impl<TReads, TWrites, TStream, TFormat> UnwindSafe for Builder<TReads, TWrites, TStream, TFormat>
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