pub struct InstanceManager {
pub name: String,
pub instances: Vec<Instance>,
pub root_path: PathBuf,
pub authenticated_apps: HashMap<String, String>,
}Fields§
§name: String§instances: Vec<Instance>§root_path: PathBuf§authenticated_apps: HashMap<String, String>Implementations§
Source§impl InstanceManager
impl InstanceManager
pub fn new(root_path: &PathBuf) -> Self
pub fn create_instance( &mut self, engine_type: &str, name: &str, ) -> Result<String, Box<dyn Error>>
pub fn get_instance(&self, instance_name: &str) -> Option<&Instance>
pub fn get_mutable_engine( &mut self, instance_name: &str, ) -> Option<&mut Engines>
pub fn sign_up(&mut self, app_name: String) -> String
pub fn get_all_apps(&self)
pub fn execute_cmd(&mut self, command: &str) -> Result<(), Box<dyn Error>>
pub fn wrapped_execute_cmd( &mut self, command: &str, ) -> Result<(), Box<dyn Error>>
pub fn execute_decl_file<P>(&mut self, filename: P) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for InstanceManager
impl Clone for InstanceManager
Source§fn clone(&self) -> InstanceManager
fn clone(&self) -> InstanceManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstanceManager
impl Debug for InstanceManager
Source§impl Default for InstanceManager
impl Default for InstanceManager
Source§fn default() -> InstanceManager
fn default() -> InstanceManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstanceManager
impl RefUnwindSafe for InstanceManager
impl Send for InstanceManager
impl Sync for InstanceManager
impl Unpin for InstanceManager
impl UnwindSafe for InstanceManager
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