pub struct CollectionsService { /* private fields */ }Implementations§
Source§impl CollectionsService
impl CollectionsService
pub fn new(storage: Arc<StorageManager>) -> Self
Trait Implementations§
Source§impl Collections for CollectionsService
impl Collections for CollectionsService
Source§fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetCollectionInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetCollectionInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetCollectionInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetCollectionInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get detailed information about a collection
Source§fn list<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListCollectionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListCollectionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListCollectionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListCollectionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get list of all collections
Source§fn create<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create new collection
Source§fn update<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update collection parameters
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete collection
Source§fn collection_exists<'life0, 'async_trait>(
&'life0 self,
request: Request<CollectionExistsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionExistsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn collection_exists<'life0, 'async_trait>(
&'life0 self,
request: Request<CollectionExistsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionExistsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if collection exists
Auto Trait Implementations§
impl Freeze for CollectionsService
impl !RefUnwindSafe for CollectionsService
impl Send for CollectionsService
impl Sync for CollectionsService
impl Unpin for CollectionsService
impl !UnwindSafe for CollectionsService
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