#[non_exhaustive]pub struct StopWorkloadCaptureContext {
pub abort_live_replay: bool,
/* private fields */
}Expand description
The context for the StopWorkloadCapture operation, which contains
details to stop recording the workload (SQL queries) on a Cloud SQL
instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.abort_live_replay: boolOptional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed.
Implementations§
Source§impl StopWorkloadCaptureContext
impl StopWorkloadCaptureContext
Sourcepub fn set_abort_live_replay<T: Into<bool>>(self, v: T) -> Self
pub fn set_abort_live_replay<T: Into<bool>>(self, v: T) -> Self
Sets the value of abort_live_replay.
§Example
ⓘ
let x = StopWorkloadCaptureContext::new().set_abort_live_replay(true);Trait Implementations§
Source§impl Clone for StopWorkloadCaptureContext
impl Clone for StopWorkloadCaptureContext
Source§impl Debug for StopWorkloadCaptureContext
impl Debug for StopWorkloadCaptureContext
Source§impl Default for StopWorkloadCaptureContext
impl Default for StopWorkloadCaptureContext
Source§impl Message for StopWorkloadCaptureContext
impl Message for StopWorkloadCaptureContext
impl StructuralPartialEq for StopWorkloadCaptureContext
Auto Trait Implementations§
impl Freeze for StopWorkloadCaptureContext
impl RefUnwindSafe for StopWorkloadCaptureContext
impl Send for StopWorkloadCaptureContext
impl Sync for StopWorkloadCaptureContext
impl Unpin for StopWorkloadCaptureContext
impl UnsafeUnpin for StopWorkloadCaptureContext
impl UnwindSafe for StopWorkloadCaptureContext
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