[][src]Struct grpcio::ClientStreamingSink

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

A sink for client streaming call.

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

Methods

impl<T> ClientStreamingSink<T>[src]

pub fn success(self, t: T) -> ClientStreamingSinkResult[src]

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

Trait Implementations

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

fn drop(&mut self)[src]

The corresponding RPC will be canceled if the sink did not send a response before dropping.

Auto Trait Implementations

impl<T> Send for ClientStreamingSink<T>

impl<T> Sync for ClientStreamingSink<T>

Blanket Implementations

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.

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

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

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