pub struct CollectionSet<SE>(/* private fields */);Implementations§
Source§impl<SE: StorageEngine> CollectionSet<SE>
impl<SE: StorageEngine> CollectionSet<SE>
pub fn new(storage_engine: Arc<SE>) -> Self
pub async fn get( &self, id: &CollectionId, ) -> Result<StorageCollectionWrapper, RetrievalError>
pub async fn list_collections( &self, ) -> Result<Vec<CollectionId>, RetrievalError>
pub async fn delete_all_collections(&self) -> Result<bool, MutationError>
Trait Implementations§
Auto Trait Implementations§
impl<SE> Freeze for CollectionSet<SE>
impl<SE> !RefUnwindSafe for CollectionSet<SE>
impl<SE> Send for CollectionSet<SE>
impl<SE> Sync for CollectionSet<SE>
impl<SE> Unpin for CollectionSet<SE>
impl<SE> !UnwindSafe for CollectionSet<SE>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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