pub(crate) struct SpdyStreams {
error: Stream,
stdin: Option<Stream>,
stdout: Option<Stream>,
stderr: Option<Stream>,
resize: Option<Stream>,
}Expand description
The streams of a SPDY session, which the client opened until the session started.
Fields§
§error: Stream§stdin: Option<Stream>§stdout: Option<Stream>§stderr: Option<Stream>§resize: Option<Stream>Implementations§
Source§impl SpdyStreams
impl SpdyStreams
Sourcepub(crate) fn accept(headers: &Headers, version: Version) -> Result<()>
pub(crate) fn accept(headers: &Headers, version: Version) -> Result<()>
Whether the client may open a stream, by its headers.
Sourcepub(crate) async fn wait(
connection: &mut Connection,
expected: ExpectedStreams,
) -> Result<Self>
pub(crate) async fn wait( connection: &mut Connection, expected: ExpectedStreams, ) -> Result<Self>
Wait for the streams the session expects, others may come along. Nothing reads the streams meanwhile: a client which sends more stdin than a stream queues before it opened the others holds up the connection until this times out. client-go opens all streams first.
Sourcepub(crate) async fn into_parts(
self,
connection: Connection,
version: Version,
) -> (SpdyInput, SpdyOutput)
pub(crate) async fn into_parts( self, connection: Connection, version: Version, ) -> (SpdyInput, SpdyOutput)
The input and the output of the session. The server sends nothing on the streams of the client. The sending side of stdin stays open, a client takes its end as the end of stdin, except for v1 like for the kubelet. The other sending sides get closed.
Auto Trait Implementations§
impl Freeze for SpdyStreams
impl RefUnwindSafe for SpdyStreams
impl Send for SpdyStreams
impl Sync for SpdyStreams
impl Unpin for SpdyStreams
impl UnsafeUnpin for SpdyStreams
impl UnwindSafe for SpdyStreams
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].