pub struct SocketFrames<'a, S> {
pub socket: &'a mut S,
}Expand description
The socket’s own transport: one tagged binary message per frame.
Fields§
§socket: &'a mut STrait Implementations§
Source§impl<S> FrameTransport for SocketFrames<'_, S>
impl<S> FrameTransport for SocketFrames<'_, S>
Source§fn deliver<'life0, 'life1, 'async_trait>(
&'life0 mut self,
frame: &'life1 BrowserFrame,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deliver<'life0, 'life1, 'async_trait>(
&'life0 mut self,
frame: &'life1 BrowserFrame,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deliver one encoded frame to this viewer.
Err is a connection that
is gone, and the caller ends it.Source§fn deliver_audio<'life0, 'life1, 'async_trait>(
&'life0 mut self,
audio: &'life1 BrowserAudio,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deliver_audio<'life0, 'life1, 'async_trait>(
&'life0 mut self,
audio: &'life1 BrowserAudio,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deliver one packet of the page’s audio to this viewer.
Source§fn deliver_terminal<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: u16,
seq: u32,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deliver_terminal<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: u16,
seq: u32,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deliver one terminal’s output to this viewer: the id, the sequence and
the shell’s own bytes.
Auto Trait Implementations§
impl<'a, S> !UnwindSafe for SocketFrames<'a, S>
impl<'a, S> Freeze for SocketFrames<'a, S>
impl<'a, S> RefUnwindSafe for SocketFrames<'a, S>where
&'a mut S: RefUnwindSafe,
impl<'a, S> Send for SocketFrames<'a, S>
impl<'a, S> Sync for SocketFrames<'a, S>
impl<'a, S> Unpin for SocketFrames<'a, S>
impl<'a, S> UnsafeUnpin for SocketFrames<'a, S>where
&'a mut S: UnsafeUnpin,
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§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