pub struct DeploymentManager { /* private fields */ }
Expand description
Production deployment manager
Implementations§
Source§impl DeploymentManager
impl DeploymentManager
Sourcepub fn new(config: DeploymentConfig) -> Self
pub fn new(config: DeploymentConfig) -> Self
Create new deployment manager
Sourcepub async fn initialize(&mut self) -> Result<(), DeploymentError>
pub async fn initialize(&mut self) -> Result<(), DeploymentError>
Initialize deployment with comprehensive setup
Sourcepub async fn deploy(&mut self) -> Result<(), DeploymentError>
pub async fn deploy(&mut self) -> Result<(), DeploymentError>
Start deployment process
Sourcepub fn get_status(&self) -> &DeploymentStatus
pub fn get_status(&self) -> &DeploymentStatus
Get current deployment status
Sourcepub fn get_metrics(&mut self) -> &DeploymentMetrics
pub fn get_metrics(&mut self) -> &DeploymentMetrics
Get deployment metrics
Sourcepub async fn scale(&mut self) -> Result<(), DeploymentError>
pub async fn scale(&mut self) -> Result<(), DeploymentError>
Scale deployment based on current metrics
Sourcepub async fn health_check(&mut self) -> Result<bool, DeploymentError>
pub async fn health_check(&mut self) -> Result<bool, DeploymentError>
Perform health check
Sourcepub async fn stop(&mut self) -> Result<(), DeploymentError>
pub async fn stop(&mut self) -> Result<(), DeploymentError>
Stop deployment
Sourcepub async fn rollback(&mut self) -> Result<(), DeploymentError>
pub async fn rollback(&mut self) -> Result<(), DeploymentError>
Rollback deployment if enabled
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