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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)