pub struct Cluster {
pub uuid: Uuid,
pub plugin_path: PathBuf,
pub data_dir: PathBuf,
pub timeout: Duration,
/* private fields */
}
Fields§
§uuid: Uuid
§plugin_path: PathBuf
§data_dir: PathBuf
§timeout: Duration
Implementations§
Source§impl Cluster
impl Cluster
pub fn new(plugin_path: &str, data_dir: &str, timeout: Duration) -> Result<Self>
pub fn stop(&self) -> Result<()>
pub fn apply_config<T>(&self, config: T) -> Result<()>where
T: Into<PluginConfigMap>,
pub fn run(self) -> Result<Self>
pub fn recreate(self) -> Result<Self>
pub fn run_query<T: AsRef<[u8]>>(&self, query: T) -> Result<String, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cluster
impl !RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl !UnwindSafe for Cluster
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> 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