pub struct RoutedCall<'a> {
pub method: &'static MethodDescriptor,
pub context: &'a CallContext,
}Expand description
Transport-neutral information passed from an operation-stream decoder to a contract router before the request body is decoded.
Fields§
§method: &'static MethodDescriptorGenerated contract descriptor selected by the fully-qualified path.
context: &'a CallContextTyped authentication, deadline, idempotency, and trace fields.
Implementations§
Source§impl<'a> RoutedCall<'a>
impl<'a> RoutedCall<'a>
Sourcepub fn new(path: &str, context: &'a CallContext) -> Option<Self>
pub fn new(path: &str, context: &'a CallContext) -> Option<Self>
Selects a generated route or returns None for an unknown method path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RoutedCall<'a>
impl<'a> RefUnwindSafe for RoutedCall<'a>
impl<'a> Send for RoutedCall<'a>
impl<'a> Sync for RoutedCall<'a>
impl<'a> Unpin for RoutedCall<'a>
impl<'a> UnsafeUnpin for RoutedCall<'a>
impl<'a> UnwindSafe for RoutedCall<'a>
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