pub struct ClientStream { /* private fields */ }Expand description
Client stream.
Trait Implementations§
Source§impl Sink<ClientStream> for Transport
impl Sink<ClientStream> for Transport
Source§type Error = ProtocolError
type Error = ProtocolError
The type of value produced by the sink when an error occurs.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: ClientStream,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: ClientStream, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl TagStore<ClientStream, Result<ServerStream, Status>> for Transport
impl TagStore<ClientStream, Result<ServerStream, Status>> for Transport
Source§fn assign_tag(self: Pin<&mut Self>, r: &mut ClientStream) -> Self::Tag
fn assign_tag(self: Pin<&mut Self>, r: &mut ClientStream) -> Self::Tag
Assign a fresh tag to the given
Request, and return that tag.Source§fn finish_tag(
self: Pin<&mut Self>,
r: &Result<ServerStream, Status>,
) -> Self::Tag
fn finish_tag( self: Pin<&mut Self>, r: &Result<ServerStream, Status>, ) -> Self::Tag
Retire and return the tag contained in the given
Response.Auto Trait Implementations§
impl Freeze for ClientStream
impl !RefUnwindSafe for ClientStream
impl Send for ClientStream
impl !Sync for ClientStream
impl Unpin for ClientStream
impl !UnwindSafe for ClientStream
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
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> 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