[−][src]Struct grpc::ServerRequest
Streaming server request.
This object is passed to server handlers.
Methods
impl<'a, M: Send + 'static> ServerRequest<'a, M>[src]
pub fn metadata(&self) -> Metadata[src]
Get request metadata.
pub fn register_stream_handler<F, H, R>(self, handler: F) -> R where
H: ServerRequestStreamHandler<M>,
F: FnOnce(ServerIncreaseInWindow) -> (H, R), [src]
H: ServerRequestStreamHandler<M>,
F: FnOnce(ServerIncreaseInWindow) -> (H, R),
Register server stream handler.
This is low level operation, hard to use. Most users use
into_stream operation.
pub fn register_stream_handler_basic<H>(self, handler: H) where
H: FnMut(Option<M>) -> Result<()> + Send + 'static, [src]
H: FnMut(Option<M>) -> Result<()> + Send + 'static,
Register basic stream handler (without manual control flow).
This is low level operation, hard to use. Most users use
into_stream operation.
pub fn register_unary_handler<H>(self, handler: H) where
H: ServerRequestUnaryHandler<M>, [src]
H: ServerRequestUnaryHandler<M>,
Register unary request handler.
Few people need this operation.
pub fn into_stream(self) -> ServerRequestStream<M>[src]
Convert request into easy to use ServerRequestStream object.
Auto Trait Implementations
impl<'a, M> !RefUnwindSafe for ServerRequest<'a, M>
impl<'a, M> Send for ServerRequest<'a, M>
impl<'a, M> !Sync for ServerRequest<'a, M>
impl<'a, M> Unpin for ServerRequest<'a, M>
impl<'a, M> !UnwindSafe for ServerRequest<'a, M>
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>,