Enum virtual_net::rx_tx::RemoteTx
source · pub(crate) enum RemoteTx<T>where
T: Serialize,{
Mpsc {
tx: Sender<T>,
work: UnboundedSender<BoxFuture<'static, ()>>,
wakers: RemoteTxWakers,
},
Stream {
tx: Arc<Mutex<Pin<Box<dyn Sink<T, Error = Error> + Send + 'static>>>>,
work: UnboundedSender<BoxFuture<'static, ()>>,
wakers: RemoteTxWakers,
},
HyperWebSocket {
tx: Arc<Mutex<SplitSink<WebSocketStream<TokioIo<Upgraded>>, Message>>>,
work: UnboundedSender<BoxFuture<'static, ()>>,
wakers: RemoteTxWakers,
format: FrameSerializationFormat,
},
TokioWebSocket {
tx: Arc<Mutex<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>>,
work: UnboundedSender<BoxFuture<'static, ()>>,
wakers: RemoteTxWakers,
format: FrameSerializationFormat,
},
}
Variants§
Mpsc
Stream
Fields
§
wakers: RemoteTxWakers
HyperWebSocket
TokioWebSocket
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RemoteTx<T>
impl<T> !RefUnwindSafe for RemoteTx<T>
impl<T> Send for RemoteTx<T>where
T: Send,
impl<T> Sync for RemoteTx<T>where
T: Send,
impl<T> Unpin for RemoteTx<T>
impl<T> !UnwindSafe for RemoteTx<T>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.