[−][src]Struct grpc::ServerResponseUnarySink
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,