[][src]Struct grpcio::UnarySink

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

A sink for unary call.

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

Methods

impl<T> UnarySink<T>[src]

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

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

Trait Implementations

impl<T> Drop for UnarySink<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 UnarySink<T>

impl<T> !Sync for UnarySink<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
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.