pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub async fn new<D>(dst: D) -> Result<Self>
pub async fn with_timeout<D>( dst: D, timeout: Duration, username: Option<String>, password: Option<String>, ) -> Result<Self>
pub async fn create_collection( &self, schema: CollectionSchema, options: Option<CreateCollectionOptions>, ) -> Result<Collection>
pub async fn get_collection(&self, collection_name: &str) -> Result<Collection>
pub async fn has_collection<S>(&self, name: S) -> Result<bool>
pub async fn drop_collection<S>(&self, name: S) -> Result<()>
pub async fn list_collections(&self) -> Result<Vec<String>>
pub async fn flush_collections<C>( &self, collections: C, ) -> Result<HashMap<String, Vec<i64>>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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> 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