[][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.

Implementations

impl<T> DuplexSink<T>[src]

pub fn set_status(&mut self, status: RpcStatus)[src]

pub fn fail(self, status: RpcStatus) -> DuplexSinkFailure[src]

Trait Implementations

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

fn drop(&mut self)[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]

type SinkItem = (T, 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<T> !RefUnwindSafe for DuplexSink<T>

impl<T> Send for DuplexSink<T>

impl<T> Sync for DuplexSink<T>

impl<T> Unpin for DuplexSink<T>

impl<T> !UnwindSafe for DuplexSink<T>

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.