Struct WssTransport
pub struct WssTransport<S>where
S: AsyncRead + AsyncWrite + Unpin,{ /* private fields */ }Trait Implementations§
Source§impl<S> RpcTransport for WssTransport<S>
impl<S> RpcTransport for WssTransport<S>
fn writer(&self) -> Sender<String>
fn next_frame<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn peer_label(&self) -> String
Source§fn kind(&self) -> TransportKind
fn kind(&self) -> TransportKind
Which transport class this connection arrived on.
Source§fn credential(&self) -> Credential
fn credential(&self) -> Credential
The transport-intrinsic credential: the kernel-reported peer uid on
Unix sockets.
Credential::None when the transport supplies
nothing (remote WSS, Windows named pipes) — those connections
authenticate by presenting an explicit credential in initialize.Auto Trait Implementations§
impl<S> !RefUnwindSafe for WssTransport<S>
impl<S> !UnwindSafe for WssTransport<S>
impl<S> Freeze for WssTransport<S>
impl<S> Send for WssTransport<S>where
S: Send,
impl<S> Sync for WssTransport<S>where
S: Send,
impl<S> Unpin for WssTransport<S>
impl<S> UnsafeUnpin for WssTransport<S>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more