pub struct DeploymentManager { /* private fields */ }Implementations§
Source§impl DeploymentManager
impl DeploymentManager
pub fn new(dev_mode: bool) -> Self
pub async fn is_deploying(&self) -> bool
Sourcepub async fn deploy(&self, app: &AppInfo, slot: &str) -> Result<u32>
pub async fn deploy(&self, app: &AppInfo, slot: &str) -> Result<u32>
Deploy an app to a slot. Returns the PID of the started process.
pub async fn stop_instance(&self, app: &AppInfo, slot: &str) -> Result<()>
pub async fn switch_traffic(&self, app: &AppInfo, new_slot: &str) -> Result<()>
pub async fn rollback(&self, app: &AppInfo) -> Result<()>
pub async fn get_deployment_log( &self, app_name: &str, slot: &str, ) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeploymentManager
impl RefUnwindSafe for DeploymentManager
impl Send for DeploymentManager
impl Sync for DeploymentManager
impl Unpin for DeploymentManager
impl UnwindSafe for DeploymentManager
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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 more