#[non_exhaustive]pub enum Shape {
Unary,
ServerStreaming,
ClientStreaming,
Bidi,
}Expand description
The call shape a handler’s signature declares: a streamed request comes from an inbound-stream parameter, a streamed reply from a stream return (transports DESIGN §5.1, §6.1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unary
One request, one reply.
ServerStreaming
One request, a streamed reply.
ClientStreaming
A streamed request, one reply.
Bidi
Both streamed.
Trait Implementations§
impl Copy for Shape
impl Eq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Forget for Shape
impl Freeze for Shape
impl Move for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more