pub struct SoltiApiService<H> { /* private fields */ }Expand description
gRPC service wrapping an ApiHandler.
§Also
SoltiApiServergenerated tonic server wrapper.ApiErrormapped totonic::Status.
Implementations§
Source§impl<H> SoltiApiService<H>where
H: ApiHandler,
impl<H> SoltiApiService<H>where
H: ApiHandler,
Sourcepub fn new(handler: Arc<H>) -> Self
pub fn new(handler: Arc<H>) -> Self
Create a new gRPC service with the given handler and no-op metrics.
Sourcepub fn new_with_metrics(handler: Arc<H>, metrics: ApiMetricsHandle) -> Self
pub fn new_with_metrics(handler: Arc<H>, metrics: ApiMetricsHandle) -> Self
Create a new gRPC service with an explicit metrics backend.
Auto Trait Implementations§
impl<H> Freeze for SoltiApiService<H>
impl<H> !RefUnwindSafe for SoltiApiService<H>
impl<H> Send for SoltiApiService<H>
impl<H> Sync for SoltiApiService<H>
impl<H> Unpin for SoltiApiService<H>
impl<H> UnsafeUnpin for SoltiApiService<H>
impl<H> !UnwindSafe for SoltiApiService<H>
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