pub struct ScopedDispatcherClient(/* private fields */);
Trait Implementations§
Source§impl Deref for ScopedDispatcherClient
impl Deref for ScopedDispatcherClient
Source§type Target = ScopedGrpcClient<DispatcherClient<InterceptedService<Channel, GrpcRequestInterceptor>>>
type Target = ScopedGrpcClient<DispatcherClient<InterceptedService<Channel, GrpcRequestInterceptor>>>
The resulting type after dereferencing.
Source§impl DerefMut for ScopedDispatcherClient
impl DerefMut for ScopedDispatcherClient
Source§impl GrpcClientType for ScopedDispatcherClient
impl GrpcClientType for ScopedDispatcherClient
type RawGrpcClient = DispatcherClient<InterceptedService<Channel, GrpcRequestInterceptor>>
fn get_mut(&mut self) -> &mut ScopedGrpcClient<Self::RawGrpcClient>
fn address_map(config: &MainConfig) -> &HashMap<u64, String>
fn create_scoped_client( project_id: ValidShardedId<ProjectId>, request_id: RequestId, channel: Channel, interceptor: GrpcRequestInterceptor, ) -> Self
fn create_channel<'life0, 'async_trait>(
address: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Channel, GrpcClientError>> + Send + 'async_trait>>where
'life0: 'async_trait,
fn get_address( config: &MainConfig, _project_id: &ValidShardedId<ProjectId>, ) -> Result<String, GrpcClientError>
Auto Trait Implementations§
impl !Freeze for ScopedDispatcherClient
impl !RefUnwindSafe for ScopedDispatcherClient
impl Send for ScopedDispatcherClient
impl Sync for ScopedDispatcherClient
impl Unpin for ScopedDispatcherClient
impl !UnwindSafe for ScopedDispatcherClient
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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