pub struct AdminUseCases<'a, P>where
P: ?Sized,{ /* private fields */ }Implementations§
Source§impl<'a, P> AdminUseCases<'a, P>where
P: RuntimeAdminPort + ?Sized,
impl<'a, P> AdminUseCases<'a, P>where
P: RuntimeAdminPort + ?Sized,
pub fn new(runtime: &'a P) -> AdminUseCases<'a, P>
pub fn set_index_enabled( &self, name: &str, enabled: bool, ) -> Result<PhysicalIndexState, RedDBError>
pub fn mark_index_building( &self, name: &str, ) -> Result<PhysicalIndexState, RedDBError>
pub fn fail_index(&self, name: &str) -> Result<PhysicalIndexState, RedDBError>
pub fn mark_index_stale( &self, name: &str, ) -> Result<PhysicalIndexState, RedDBError>
pub fn mark_index_ready( &self, name: &str, ) -> Result<PhysicalIndexState, RedDBError>
pub fn warmup_index(&self, name: &str) -> Result<PhysicalIndexState, RedDBError>
pub fn rebuild_indexes( &self, collection: Option<&str>, ) -> Result<Vec<PhysicalIndexState>, RedDBError>
pub fn save_graph_projection( &self, name: impl Into<String>, projection: RuntimeGraphProjection, source: Option<String>, ) -> Result<PhysicalGraphProjection, RedDBError>
pub fn mark_graph_projection_materializing( &self, name: &str, ) -> Result<PhysicalGraphProjection, RedDBError>
pub fn materialize_graph_projection( &self, name: &str, ) -> Result<PhysicalGraphProjection, RedDBError>
pub fn fail_graph_projection( &self, name: &str, ) -> Result<PhysicalGraphProjection, RedDBError>
pub fn mark_graph_projection_stale( &self, name: &str, ) -> Result<PhysicalGraphProjection, RedDBError>
pub fn save_analytics_job( &self, kind: impl Into<String>, projection_name: Option<String>, metadata: BTreeMap<String, String>, ) -> Result<PhysicalAnalyticsJob, RedDBError>
pub fn start_analytics_job( &self, kind: impl Into<String>, projection_name: Option<String>, metadata: BTreeMap<String, String>, ) -> Result<PhysicalAnalyticsJob, RedDBError>
pub fn queue_analytics_job( &self, kind: impl Into<String>, projection_name: Option<String>, metadata: BTreeMap<String, String>, ) -> Result<PhysicalAnalyticsJob, RedDBError>
pub fn fail_analytics_job( &self, kind: impl Into<String>, projection_name: Option<String>, metadata: BTreeMap<String, String>, ) -> Result<PhysicalAnalyticsJob, RedDBError>
pub fn mark_analytics_job_stale( &self, kind: impl Into<String>, projection_name: Option<String>, metadata: BTreeMap<String, String>, ) -> Result<PhysicalAnalyticsJob, RedDBError>
pub fn complete_analytics_job( &self, kind: impl Into<String>, projection_name: Option<String>, metadata: BTreeMap<String, String>, ) -> Result<PhysicalAnalyticsJob, RedDBError>
pub fn build_serverless_warmup_plan( &self, index_statuses: &[CatalogIndexStatus], graph_projection_statuses: &[CatalogGraphProjectionStatus], analytics_job_statuses: &[CatalogAnalyticsJobStatus], force: bool, include_indexes: bool, include_graph_projections: bool, include_analytics_jobs: bool, include_native_artifacts: bool, ) -> ServerlessWarmupPlan
Auto Trait Implementations§
impl<'a, P> Freeze for AdminUseCases<'a, P>where
P: ?Sized,
impl<'a, P> RefUnwindSafe for AdminUseCases<'a, P>where
P: RefUnwindSafe + ?Sized,
impl<'a, P> Send for AdminUseCases<'a, P>
impl<'a, P> Sync for AdminUseCases<'a, P>
impl<'a, P> Unpin for AdminUseCases<'a, P>where
P: ?Sized,
impl<'a, P> UnsafeUnpin for AdminUseCases<'a, P>where
P: ?Sized,
impl<'a, P> UnwindSafe for AdminUseCases<'a, P>where
P: RefUnwindSafe + ?Sized,
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