pub struct WebSocketTransport<T> { /* private fields */ }Expand description
WebSocket transport for ACP
Implementations§
Source§impl<T: AsyncRead + AsyncWrite + Unpin> WebSocketTransport<T>
impl<T: AsyncRead + AsyncWrite + Unpin> WebSocketTransport<T>
pub fn new(socket: WebSocketStream<T>) -> Self
Trait Implementations§
Source§impl<T, U> ConnectTo<U> for WebSocketTransport<T>
impl<T, U> ConnectTo<U> for WebSocketTransport<T>
Source§async fn connect_to(
self,
peer: impl ConnectTo<U::Counterpart>,
) -> Result<(), Error>
async fn connect_to( self, peer: impl ConnectTo<U::Counterpart>, ) -> Result<(), Error>
Connect this component to another component. Read more
Auto Trait Implementations§
impl<T> !Freeze for WebSocketTransport<T>
impl<T> !RefUnwindSafe for WebSocketTransport<T>
impl<T> !UnwindSafe for WebSocketTransport<T>
impl<T> Send for WebSocketTransport<T>where
WebSocketStream<T>: Send,
impl<T> Sync for WebSocketTransport<T>where
WebSocketStream<T>: Sync,
impl<T> Unpin for WebSocketTransport<T>where
WebSocketStream<T>: Unpin,
impl<T> UnsafeUnpin for WebSocketTransport<T>where
WebSocketStream<T>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.