pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
pub fn read_collection_ignore( &self, space: Option<&str>, collection: &str, ) -> Result<(String, Option<String>)>
pub fn add_collection_ignore_pattern( &self, space: Option<&str>, collection: &str, pattern: &str, ) -> Result<(String, String)>
pub fn remove_collection_ignore_pattern( &self, space: Option<&str>, collection: &str, pattern: &str, ) -> Result<(String, usize)>
pub fn list_collection_ignores( &self, space: Option<&str>, ) -> Result<Vec<IgnoreListEntry>>
pub fn prepare_collection_ignore_edit( &self, space: Option<&str>, collection: &str, ) -> Result<(String, PathBuf)>
Source§impl Engine
impl Engine
pub fn add_schedule( &self, req: AddScheduleRequest, ) -> Result<ScheduleAddResponse>
pub fn list_schedules(&self) -> Result<Vec<ScheduleDefinition>>
pub fn remove_schedule( &self, req: RemoveScheduleRequest, ) -> Result<ScheduleRemoveResponse>
Source§impl Engine
impl Engine
pub fn run_schedule(&self, id: &str) -> Result<ScheduleRunState>
pub fn schedule_run_state(&self, id: &str) -> Result<ScheduleRunState>
Source§impl Engine
impl Engine
pub fn schedule_status(&self) -> Result<ScheduleStatusResponse>
Source§impl Engine
impl Engine
pub fn update(&self, options: UpdateOptions) -> Result<UpdateReport>
pub fn resolve_update_targets( &self, options: &UpdateOptions, ) -> Result<Vec<UpdateTarget>>
Source§impl Engine
impl Engine
pub fn new(config_path: Option<&Path>) -> Result<Self>
pub fn new_with_recovery_notice( config_path: Option<&Path>, recovery_notice: Option<RecoveryNoticeSink>, ) -> Result<Self>
pub fn add_space( &self, name: &str, description: Option<&str>, ) -> Result<SpaceInfo>
pub fn remove_space(&mut self, name: &str) -> Result<()>
pub fn rename_space(&mut self, old: &str, new: &str) -> Result<()>
pub fn describe_space(&self, name: &str, description: &str) -> Result<()>
pub fn list_spaces(&self) -> Result<Vec<SpaceInfo>>
pub fn space_info(&self, name: &str) -> Result<SpaceInfo>
pub fn set_default_space( &mut self, name: Option<&str>, ) -> Result<Option<String>>
pub fn add_collection( &self, req: AddCollectionRequest, ) -> Result<AddCollectionResult>
pub fn remove_collection(&self, space: Option<&str>, name: &str) -> Result<()>
pub fn rename_collection( &self, space: Option<&str>, old: &str, new: &str, ) -> Result<()>
pub fn describe_collection( &self, space: Option<&str>, name: &str, desc: &str, ) -> Result<()>
pub fn list_collections( &self, space: Option<&str>, ) -> Result<Vec<CollectionInfo>>
pub fn collection_info( &self, space: Option<&str>, name: &str, ) -> Result<CollectionInfo>
pub fn list_files( &self, space: Option<&str>, collection: &str, prefix: Option<&str>, ) -> Result<Vec<FileEntry>>
pub fn get_document(&self, req: GetRequest) -> Result<DocumentResponse>
pub fn multi_get(&self, req: MultiGetRequest) -> Result<MultiGetResponse>
pub fn search(&self, req: SearchRequest) -> Result<SearchResponse>
pub fn resolve_space(&self, explicit: Option<&str>) -> Result<String>
pub fn current_space( &self, explicit: Option<&str>, ) -> Result<Option<ActiveSpace>>
pub fn status(&self, space: Option<&str>) -> Result<StatusResponse>
pub fn model_status(&self) -> Result<ModelStatus>
pub fn config(&self) -> &Config
pub fn storage(&self) -> &Storage
Auto Trait Implementations§
impl !Freeze for Engine
impl !RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl !UnwindSafe for Engine
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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