LoadState
This enum represents the load state of a collection or partition, as returned by GetLoadState().
pub enum LoadState {
NotExist,
NotLoad,
Loading,
Loaded,
Unknown,
}
VARIANTS:
NotExistThe collection does not exist on the server. This is the default.
NotLoadThe collection exists but its data is not loaded.
LoadingThe collection is currently being loaded.
LoadedThe collection is fully loaded and available for queries.
UnknownThe load state could not be determined.
Example
let resp = client.get_load_state(request).await?;
if resp.state() == LoadState::Loaded {
println!("collection is ready for queries");
}