[][src]Struct grpcio::StreamingCallSink

#[must_use = "if unused the StreamingCallSink may immediately cancel the RPC"]pub struct StreamingCallSink<Req> { /* fields omitted */ }

A sink for client streaming call and duplex streaming call. To close the sink properly, you should call close before dropping.

Methods

impl<Req> StreamingCallSink<Req>[src]

pub fn cancel(&mut self)[src]

Trait Implementations

impl<P> Drop for StreamingCallSink<P>[src]

fn drop(&mut self)[src]

The corresponding RPC will be canceled if the sink did not call close before dropping.

impl<Req> Sink for StreamingCallSink<Req>[src]

type SinkItem = (Req, WriteFlags)

The type of value that the sink accepts.

type SinkError = Error

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl<Req> !RefUnwindSafe for StreamingCallSink<Req>

impl<Req> Send for StreamingCallSink<Req>

impl<Req> Sync for StreamingCallSink<Req>

impl<Req> Unpin for StreamingCallSink<Req>

impl<Req> !UnwindSafe for StreamingCallSink<Req>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.