pub struct ServeBlobService<S> {
service: S,
}Expand description
A serving function to use with [::tarpc::server::InFlightRequest::execute].
Fields§
§service: STrait Implementations§
Source§impl<S: Clone> Clone for ServeBlobService<S>
impl<S: Clone> Clone for ServeBlobService<S>
Source§fn clone(&self) -> ServeBlobService<S>
fn clone(&self) -> ServeBlobService<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Serve for ServeBlobService<S>where
S: BlobService,
impl<S> Serve for ServeBlobService<S>where
S: BlobService,
Source§type Req = BlobServiceRequest
type Req = BlobServiceRequest
Type of request.
Source§type Resp = BlobServiceResponse
type Resp = BlobServiceResponse
Type of response.
Source§async fn serve(
self,
ctx: Context,
req: BlobServiceRequest,
) -> Result<BlobServiceResponse, ServerError>
async fn serve( self, ctx: Context, req: BlobServiceRequest, ) -> Result<BlobServiceResponse, ServerError>
Responds to a single request.
Auto Trait Implementations§
impl<S> Freeze for ServeBlobService<S>where
S: Freeze,
impl<S> RefUnwindSafe for ServeBlobService<S>where
S: RefUnwindSafe,
impl<S> Send for ServeBlobService<S>where
S: Send,
impl<S> Sync for ServeBlobService<S>where
S: Sync,
impl<S> Unpin for ServeBlobService<S>where
S: Unpin,
impl<S> UnwindSafe for ServeBlobService<S>where
S: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<S> RequestHook for Swhere
S: Serve,
impl<S> RequestHook for Swhere
S: Serve,
§fn before<Hook>(self, hook: Hook) -> HookThenServe<Self, Hook>where
Hook: BeforeRequest<Self::Req>,
Self: Sized,
fn before<Hook>(self, hook: Hook) -> HookThenServe<Self, Hook>where
Hook: BeforeRequest<Self::Req>,
Self: Sized,
Runs a hook before execution of the request. Read more
§fn after<Hook>(self, hook: Hook) -> ServeThenHook<Self, Hook>where
Hook: AfterRequest<Self::Resp>,
Self: Sized,
fn after<Hook>(self, hook: Hook) -> ServeThenHook<Self, Hook>where
Hook: AfterRequest<Self::Resp>,
Self: Sized,
Runs a hook after completion of a request. Read more
§fn before_and_after<Hook>(
self,
hook: Hook,
) -> HookThenServeThenHook<Self::Req, Self::Resp, Self, Hook>where
Hook: BeforeRequest<Self::Req> + AfterRequest<Self::Resp>,
Self: Sized,
fn before_and_after<Hook>(
self,
hook: Hook,
) -> HookThenServeThenHook<Self::Req, Self::Resp, Self, Hook>where
Hook: BeforeRequest<Self::Req> + AfterRequest<Self::Resp>,
Self: Sized,
Runs a hook before and after execution of the request. Read more