pub struct RpcDefinition<Input, Output> { /* private fields */ }Expand description
Adds execution options to a typed Rpc before handler binding.
Definitions are created implicitly from Rpc or explicitly through Rpc::timeout and
Rpc::lock. Multiple locks are acquired together for the invocation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Input, Output> Freeze for RpcDefinition<Input, Output>
impl<Input, Output> RefUnwindSafe for RpcDefinition<Input, Output>where
Rpc<Input, Output>: RefUnwindSafe,
impl<Input, Output> Send for RpcDefinition<Input, Output>
impl<Input, Output> Sync for RpcDefinition<Input, Output>
impl<Input, Output> Unpin for RpcDefinition<Input, Output>
impl<Input, Output> UnsafeUnpin for RpcDefinition<Input, Output>where
Rpc<Input, Output>: UnsafeUnpin,
impl<Input, Output> UnwindSafe for RpcDefinition<Input, Output>where
Rpc<Input, Output>: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request