pub(crate) struct WebSocketInput {
pub(crate) messages: SplitStream<WebSocketStream<ClientIo<TokioIo<Upgraded>>>>,
pub(crate) framing: Framing,
pub(crate) activity: Activity,
pub(crate) written: Activity,
pub(crate) discard: Discard,
}Expand description
The input of a WebSocket client.
Fields§
§messages: SplitStream<WebSocketStream<ClientIo<TokioIo<Upgraded>>>>§framing: Framing§activity: ActivityTouched by every message of the client except for pings and pongs, which a client like the WebSocket executor of client-go sends as a heartbeat. CRI-O does not count them either.
written: ActivityTouched whenever a part of what the server sends went out, see
web::ClientIo::written.
discard: DiscardDrops the input of a client which sent a message larger than the
server takes, see web::Discard.
Trait Implementations§
Source§impl ClientInput for WebSocketInput
impl ClientInput for WebSocketInput
Source§async fn next(&mut self) -> Option<ClientEvent>
async fn next(&mut self) -> Option<ClientEvent>
The next event,
None once the client went away without a clean
close.Source§async fn answer_close(&mut self)
async fn answer_close(&mut self)
Answer the clean close of the client, see
web::answer_close.Auto Trait Implementations§
impl !RefUnwindSafe for WebSocketInput
impl !UnwindSafe for WebSocketInput
impl Freeze for WebSocketInput
impl Send for WebSocketInput
impl Sync for WebSocketInput
impl Unpin for WebSocketInput
impl UnsafeUnpin for WebSocketInput
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].