pub enum CapabilityShape {
Unary,
ServerStreaming,
ClientStreaming,
BidirectionalStreaming,
EventSubscription,
}Expand description
A capability’s declared interaction shape.
Variants§
Unary
One request produces one response.
ServerStreaming
One request produces a stream of responses.
ClientStreaming
A stream of requests produces one response.
BidirectionalStreaming
Request and response streams proceed independently.
EventSubscription
A request subscribes to a stream of events.
Trait Implementations§
Source§impl Clone for CapabilityShape
impl Clone for CapabilityShape
Source§fn clone(&self) -> CapabilityShape
fn clone(&self) -> CapabilityShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapabilityShape
Source§impl Debug for CapabilityShape
impl Debug for CapabilityShape
impl Eq for CapabilityShape
Source§impl Hash for CapabilityShape
impl Hash for CapabilityShape
Source§impl PartialEq for CapabilityShape
impl PartialEq for CapabilityShape
impl StructuralPartialEq for CapabilityShape
Auto Trait Implementations§
impl Freeze for CapabilityShape
impl RefUnwindSafe for CapabilityShape
impl Send for CapabilityShape
impl Sync for CapabilityShape
impl Unpin for CapabilityShape
impl UnsafeUnpin for CapabilityShape
impl UnwindSafe for CapabilityShape
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