Struct aws_config::BehaviorVersion
source · pub struct BehaviorVersion { /* private fields */ }
Expand description
Behavior major-version of the client
Over time, new best-practice behaviors are introduced. However, these behaviors might not be backwards compatible. For example, a change which introduces new default timeouts or a new retry-mode for all operations might be the ideal behavior but could break existing applications.
Implementations§
source§impl BehaviorVersion
impl BehaviorVersion
sourcepub fn latest() -> BehaviorVersion
pub fn latest() -> BehaviorVersion
This method will always return the latest major version.
This is the recommend choice for customers who aren’t reliant on extremely specific behavior characteristics. For example, if you are writing a CLI app, the latest behavior major version is probably the best setting for you.
If, however, you’re writing a service that is very latency sensitive, or that has written code to tune Rust SDK behaviors, consider pinning to a specific major version.
The latest version is currently BehaviorVersion::v2023_11_09
sourcepub fn v2023_11_09() -> BehaviorVersion
pub fn v2023_11_09() -> BehaviorVersion
This method returns the behavior configuration for November 9th, 2023
When a new behavior major version is released, this method will be deprecated.
Trait Implementations§
source§impl Clone for BehaviorVersion
impl Clone for BehaviorVersion
source§fn clone(&self) -> BehaviorVersion
fn clone(&self) -> BehaviorVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for BehaviorVersion
impl RefUnwindSafe for BehaviorVersion
impl Send for BehaviorVersion
impl Sync for BehaviorVersion
impl Unpin for BehaviorVersion
impl UnwindSafe for BehaviorVersion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)