[][src]Struct grpcio::DuplexSink

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

A sink for duplex streaming call.

To close the sink properly, you should call close or fail before dropping.

Methods

impl<T> DuplexSink<T>
[src]

Trait Implementations

impl<T> Drop for DuplexSink<T>
[src]

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

impl<T> Sink for DuplexSink<T>
[src]

The type of value that the sink accepts.

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

Creates a new object which will produce a synchronous sink. Read more

Composes a function in front of the sink. Read more

Composes a function in front of the sink. Read more

Transforms the error returned by the sink.

Map this sink's error to any error implementing From for this sink's Error, returning a new sink. Read more

Adds a fixed-size buffer to the current sink. Read more

Fanout items to multiple sinks. Read more

A future that completes when the sink has finished processing all pending requests. Read more

A future that completes after the given item has been fully processed into the sink, including flushing. Read more

A future that completes after the given stream has been fully processed into the sink, including flushing. Read more

Auto Trait Implementations

impl<T> Send for DuplexSink<T>

impl<T> Sync for DuplexSink<T>

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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