Struct grpcio::UnarySink[][src]

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

Implementations

impl<T> UnarySink<T>[src]

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

Notable traits for UnarySinkResult

impl Future for UnarySinkResult type Output = Result<()>;
[src]

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

Notable traits for UnarySinkResult

impl Future for UnarySinkResult type Output = Result<()>;
[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> !RefUnwindSafe for UnarySink<T>

impl<T> Send for UnarySink<T>

impl<T> !Sync for UnarySink<T>

impl<T> Unpin for UnarySink<T>

impl<T> !UnwindSafe for UnarySink<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.