pub struct CloudControlService { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for CloudControlService
impl Default for CloudControlService
Source§impl MockService for CloudControlService
impl MockService for CloudControlService
Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
The service identifier (e.g., “sts”, “iam”, “s3”).
Source§fn url_patterns(&self) -> Vec<&str>
fn url_patterns(&self) -> Vec<&str>
URL patterns this service handles (as regex strings).
Source§fn handle(
&self,
request: MockRequest,
) -> Pin<Box<dyn Future<Output = MockResponse> + Send + '_>>
fn handle( &self, request: MockRequest, ) -> Pin<Box<dyn Future<Output = MockResponse> + Send + '_>>
Handle an incoming request and produce a response.
Source§impl StatefulService for CloudControlService
impl StatefulService for CloudControlService
Source§type StateView = CloudControlStateView
type StateView = CloudControlStateView
Serde-compatible view of this service’s per-region state.
Source§async fn snapshot(&self, account_id: &str, region: &str) -> Self::StateView
async fn snapshot(&self, account_id: &str, region: &str) -> Self::StateView
Take a snapshot of the state for the given account/region as a typed view.
Source§async fn restore(
&self,
account_id: &str,
region: &str,
view: Self::StateView,
) -> Result<(), StateViewError>
async fn restore( &self, account_id: &str, region: &str, view: Self::StateView, ) -> Result<(), StateViewError>
Restore state for the given account/region from a typed view.
Replaces the existing state entirely.
Source§async fn merge(
&self,
account_id: &str,
region: &str,
view: Self::StateView,
) -> Result<(), StateViewError>
async fn merge( &self, account_id: &str, region: &str, view: Self::StateView, ) -> Result<(), StateViewError>
Merge a partial view into existing state (additive, does not remove
existing resources).
Auto Trait Implementations§
impl !Freeze for CloudControlService
impl RefUnwindSafe for CloudControlService
impl Send for CloudControlService
impl Sync for CloudControlService
impl Unpin for CloudControlService
impl UnsafeUnpin for CloudControlService
impl UnwindSafe for CloudControlService
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> 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 moreCreates a shared type from an unshared type.