pub struct GRPCBlobStoreWrapper<T> {
blob_store: T,
}Expand description
Wraps a BlobStore into a gRPC proto::blob_store_service_server::BlobStoreService.
Fields§
§blob_store: TImplementations§
Source§impl<T> GRPCBlobStoreWrapper<T>
impl<T> GRPCBlobStoreWrapper<T>
Sourcepub fn new(blob_store: T) -> Self
pub fn new(blob_store: T) -> Self
Constructs a new GRPCBlobStoreWrapper from a BlobStore.
Trait Implementations§
Source§impl<T> BlobStoreService for GRPCBlobStoreWrapper<T>where
T: BlobStore + 'static,
impl<T> BlobStoreService for GRPCBlobStoreWrapper<T>where
T: BlobStore + 'static,
Source§fn stat_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<StatBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stat_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<StatBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stat checks if a [BlobMeta] for a given blob exists.
Source§fn get_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get retrieves a [BlobMeta] for a given blob digest.
Source§fn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Put persists a [BlobMeta] for the given blob digest.
Auto Trait Implementations§
impl<T> Freeze for GRPCBlobStoreWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for GRPCBlobStoreWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for GRPCBlobStoreWrapper<T>where
T: Send,
impl<T> Sync for GRPCBlobStoreWrapper<T>where
T: Sync,
impl<T> Unpin for GRPCBlobStoreWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for GRPCBlobStoreWrapper<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GRPCBlobStoreWrapper<T>where
T: 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> 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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].