pub struct BootstrapHandler { /* private fields */ }
Expand description
Bootstrap handler for cluster initialization
Implementations§
Source§impl BootstrapHandler
impl BootstrapHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn create(&self, config: BootstrapConfig) -> Result<BootstrapStatus>
pub async fn create(&self, config: BootstrapConfig) -> Result<BootstrapStatus>
Initialize cluster bootstrap
Sourcepub async fn status(&self) -> Result<BootstrapStatus>
pub async fn status(&self) -> Result<BootstrapStatus>
Get bootstrap status
Sourcepub async fn join(&self, config: BootstrapConfig) -> Result<BootstrapStatus>
pub async fn join(&self, config: BootstrapConfig) -> Result<BootstrapStatus>
Join node to existing cluster
Auto Trait Implementations§
impl Freeze for BootstrapHandler
impl !RefUnwindSafe for BootstrapHandler
impl Send for BootstrapHandler
impl Sync for BootstrapHandler
impl Unpin for BootstrapHandler
impl !UnwindSafe for BootstrapHandler
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