pub struct GRPCPathInfoServiceWrapper<PS, NS> {
path_info_service: PS,
nar_calculation_service: NS,
}
Fields§
§path_info_service: PS
§nar_calculation_service: NS
Implementations§
source§impl<PS, NS> GRPCPathInfoServiceWrapper<PS, NS>
impl<PS, NS> GRPCPathInfoServiceWrapper<PS, NS>
Trait Implementations§
source§impl<PS, NS> PathInfoService for GRPCPathInfoServiceWrapper<PS, NS>where
PS: Deref<Target = dyn PathInfoService> + Send + Sync + 'static,
NS: NarCalculationService + Send + Sync + 'static,
impl<PS, NS> PathInfoService for GRPCPathInfoServiceWrapper<PS, NS>where
PS: Deref<Target = dyn PathInfoService> + Send + Sync + 'static,
NS: NarCalculationService + Send + Sync + 'static,
§type ListStream = Pin<Box<dyn Stream<Item = Result<PathInfo, Status>> + Send>>
type ListStream = Pin<Box<dyn Stream<Item = Result<PathInfo, Status>> + Send>>
Server streaming response type for the List method.
source§fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPathInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PathInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPathInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PathInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return a PathInfo message matching the criteria specified in the
GetPathInfoRequest message.
source§fn put<'life0, 'async_trait>(
&'life0 self,
request: Request<PathInfo>,
) -> Pin<Box<dyn Future<Output = Result<Response<PathInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put<'life0, 'async_trait>(
&'life0 self,
request: Request<PathInfo>,
) -> Pin<Box<dyn Future<Output = Result<Response<PathInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Upload a PathInfo object to the remote end. It MUST not return until the
PathInfo object has been written on the the remote end. Read more
source§fn calculate_nar<'life0, 'async_trait>(
&'life0 self,
request: Request<Node>,
) -> Pin<Box<dyn Future<Output = Result<Response<CalculateNarResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn calculate_nar<'life0, 'async_trait>(
&'life0 self,
request: Request<Node>,
) -> Pin<Box<dyn Future<Output = Result<Response<CalculateNarResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Calculate the NAR representation of the contents specified by the
root_node. The calculation SHOULD be cached server-side for subsequent
requests. Read more
source§fn list<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListPathInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ListStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListPathInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ListStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return a stream of PathInfo messages matching the criteria specified in
ListPathInfoRequest.
Auto Trait Implementations§
impl<PS, NS> Freeze for GRPCPathInfoServiceWrapper<PS, NS>
impl<PS, NS> RefUnwindSafe for GRPCPathInfoServiceWrapper<PS, NS>where
PS: RefUnwindSafe,
NS: RefUnwindSafe,
impl<PS, NS> Send for GRPCPathInfoServiceWrapper<PS, NS>
impl<PS, NS> Sync for GRPCPathInfoServiceWrapper<PS, NS>
impl<PS, NS> Unpin for GRPCPathInfoServiceWrapper<PS, NS>
impl<PS, NS> UnwindSafe for GRPCPathInfoServiceWrapper<PS, NS>where
PS: UnwindSafe,
NS: 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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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