pub struct ProxyService { /* private fields */ }Implementations§
Source§impl ProxyService
impl ProxyService
pub fn is_running_blocking(&self) -> Result<bool, String>
pub fn is_app_takeover_active_blocking( &self, app_type: &AppType, ) -> Result<bool, String>
pub fn recover_takeovers_on_startup_blocking(&self) -> Result<(), String>
pub fn new(db: Arc<Database>) -> Self
pub async fn start(&self) -> Result<ProxyServerInfo, String>
pub async fn start_with_runtime_config( &self, config: ProxyConfig, ) -> Result<ProxyServerInfo, String>
pub async fn start_managed_session( &self, app_type: &str, ) -> Result<ProxyServerInfo, String>
pub async fn set_managed_session_for_app( &self, app_type: &str, enabled: bool, ) -> Result<(), String>
pub async fn recover_takeovers_on_startup(&self) -> Result<(), String>
pub async fn stop(&self) -> Result<(), String>
pub async fn stop_with_restore(&self) -> Result<(), String>
pub async fn is_running(&self) -> bool
pub async fn get_status(&self) -> ProxyStatus
pub async fn get_config(&self) -> Result<ProxyConfig, AppError>
pub async fn update_config(&self, config: &ProxyConfig) -> Result<(), AppError>
pub async fn update_circuit_breaker_configs( &self, config: CircuitBreakerConfig, ) -> Result<(), String>
pub async fn reset_provider_circuit_breaker( &self, provider_id: &str, app_type: &str, ) -> Result<(), String>
pub async fn get_global_config(&self) -> Result<GlobalProxyConfig, AppError>
pub async fn set_global_enabled( &self, enabled: bool, ) -> Result<GlobalProxyConfig, AppError>
pub async fn get_takeover_status(&self) -> Result<ProxyTakeoverStatus, String>
pub async fn set_takeover_for_app( &self, app_type: &str, enabled: bool, ) -> Result<(), String>
pub async fn is_app_takeover_active( &self, app_type: &AppType, ) -> Result<bool, String>
pub fn detect_takeover_in_live_config_for_app(&self, app_type: &AppType) -> bool
pub async fn update_live_backup_from_provider( &self, app_type: &str, provider: &Provider, ) -> Result<(), String>
pub async fn hot_switch_provider( &self, app_type: &str, provider_id: &str, ) -> Result<HotSwitchOutcome, String>
pub async fn switch_proxy_target( &self, app_type: &str, provider_id: &str, ) -> Result<(), String>
pub async fn save_live_backup_snapshot( &self, app_type: &str, snapshot: &Value, ) -> Result<(), String>
Trait Implementations§
Source§impl Clone for ProxyService
impl Clone for ProxyService
Source§fn clone(&self) -> ProxyService
fn clone(&self) -> ProxyService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProxyService
impl !UnwindSafe for ProxyService
impl Freeze for ProxyService
impl Send for ProxyService
impl Sync for ProxyService
impl Unpin for ProxyService
impl UnsafeUnpin for ProxyService
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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