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§
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> RefUnwindSafe for Builder<TReads, TWrites, TStream, TFormat>where TFormat: RefUnwindSafe, TReads: RefUnwindSafe, TStream: RefUnwindSafe, TWrites: RefUnwindSafe,
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,
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