pub enum ApplicationIntent {
ReadWrite,
ReadOnly,
}Expand description
Application workload intent for AlwaysOn Availability Group routing.
When set to ReadOnly, SQL Server routes the
connection to a readable secondary replica if one is available. This is sent
in the LOGIN7 packet’s TypeFlags as the READONLY_INTENT bit.
Set via ApplicationIntent=ReadOnly in connection strings, or
programmatically via Config::application_intent.
Variants§
ReadWrite
Read-write workload (default). Routes to the primary replica.
ReadOnly
Read-only workload. Routes to a readable secondary replica.
Trait Implementations§
Source§impl Clone for ApplicationIntent
impl Clone for ApplicationIntent
Source§fn clone(&self) -> ApplicationIntent
fn clone(&self) -> ApplicationIntent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplicationIntent
impl Debug for ApplicationIntent
Source§impl Default for ApplicationIntent
impl Default for ApplicationIntent
Source§fn default() -> ApplicationIntent
fn default() -> ApplicationIntent
Returns the “default value” for a type. Read more
Source§impl PartialEq for ApplicationIntent
impl PartialEq for ApplicationIntent
impl Copy for ApplicationIntent
impl Eq for ApplicationIntent
impl StructuralPartialEq for ApplicationIntent
Auto Trait Implementations§
impl Freeze for ApplicationIntent
impl RefUnwindSafe for ApplicationIntent
impl Send for ApplicationIntent
impl Sync for ApplicationIntent
impl Unpin for ApplicationIntent
impl UnsafeUnpin for ApplicationIntent
impl UnwindSafe for ApplicationIntent
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.