[][src]Struct grpc::ServerResponseUnarySink

pub struct ServerResponseUnarySink<Resp: Send + 'static> { /* fields omitted */ }

A sink for single message (for unary request).

Methods

impl<Resp: Send + 'static> ServerResponseUnarySink<Resp>[src]

pub fn send_metadata(&mut self, metadata: Metadata) -> Result<()>[src]

Send response header metadata.

This operation can be only called before data sent.

pub fn finish_with_trailers(self, resp: Resp, metadata: Metadata) -> Result<()>[src]

Send the response with trailers metadata.

pub fn finish(self, resp: Resp) -> Result<()>[src]

Send the response.

pub fn send_grpc_error(self, status: GrpcStatus, message: String) -> Result<()>[src]

Send error.

Auto Trait Implementations

impl<Resp> !RefUnwindSafe for ServerResponseUnarySink<Resp>

impl<Resp> Send for ServerResponseUnarySink<Resp>

impl<Resp> !Sync for ServerResponseUnarySink<Resp>

impl<Resp> Unpin for ServerResponseUnarySink<Resp>

impl<Resp> !UnwindSafe for ServerResponseUnarySink<Resp>

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.