pub struct MethodDescriptor {Show 16 fields
pub path: &'static str,
pub input: &'static str,
pub output: &'static str,
pub streaming: StreamingShape,
pub live_stream: bool,
pub effect: RpcEffect,
pub retry_behavior: RetryBehavior,
pub signing_tier: SigningTier,
pub authorization_access: AuthorizationAccess,
pub signing_identity: StableSigningIdentity,
pub authorization: AuthorizationPolicy,
pub client_operation_id_required: bool,
pub client_operation_id_field_number: Option<u32>,
pub maturity: ServiceMaturity,
pub deployment_targets: &'static [DeploymentTarget],
pub route: MethodRoute,
}Expand description
Generated transport-neutral method contract.
Fields§
§path: &'static str§input: &'static str§output: &'static str§streaming: StreamingShape§live_stream: bool§effect: RpcEffect§retry_behavior: RetryBehavior§signing_tier: SigningTier§signing_identity: StableSigningIdentity§client_operation_id_required: bool§client_operation_id_field_number: Option<u32>§maturity: ServiceMaturity§deployment_targets: &'static [DeploymentTarget]§route: MethodRouteImplementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub const fn allows_zero_rtt(&self) -> bool
pub const fn allows_zero_rtt(&self) -> bool
Only safe reads can be sent on replayable 0-RTT connections.
Sourcepub fn client_operation_id<'a>(
&self,
request: &'a [u8],
) -> Result<Option<&'a str>, RequestMetadataError>
pub fn client_operation_id<'a>( &self, request: &'a [u8], ) -> Result<Option<&'a str>, RequestMetadataError>
Extract the operation ID for the transport context from the exact request bytes. Adapters must not maintain a second route/field-number inventory.
Trait Implementations§
Source§impl Clone for MethodDescriptor
impl Clone for MethodDescriptor
impl Copy for MethodDescriptor
Source§impl Debug for MethodDescriptor
impl Debug for MethodDescriptor
impl Eq for MethodDescriptor
Source§impl PartialEq for MethodDescriptor
impl PartialEq for MethodDescriptor
impl StructuralPartialEq for MethodDescriptor
Auto Trait Implementations§
impl Freeze for MethodDescriptor
impl RefUnwindSafe for MethodDescriptor
impl Send for MethodDescriptor
impl Sync for MethodDescriptor
impl Unpin for MethodDescriptor
impl UnsafeUnpin for MethodDescriptor
impl UnwindSafe for MethodDescriptor
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