pub enum ReadPreference {
Leader,
}
Expand description
Defines the read preference for frontend route operations, determining whether to read from the region leader or follower.
Variants§
Leader
Trait Implementations§
Source§impl AsRef<str> for ReadPreference
impl AsRef<str> for ReadPreference
Source§impl Clone for ReadPreference
impl Clone for ReadPreference
Source§fn clone(&self) -> ReadPreference
fn clone(&self) -> ReadPreference
Returns a copy 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 ReadPreference
impl Debug for ReadPreference
Source§impl Default for ReadPreference
impl Default for ReadPreference
Source§fn default() -> ReadPreference
fn default() -> ReadPreference
Returns the “default value” for a type. Read more
Source§impl Display for ReadPreference
impl Display for ReadPreference
Source§impl FromStr for ReadPreference
impl FromStr for ReadPreference
Source§impl PartialEq for ReadPreference
impl PartialEq for ReadPreference
Source§impl TryFrom<&str> for ReadPreference
impl TryFrom<&str> for ReadPreference
impl Copy for ReadPreference
impl Eq for ReadPreference
impl StructuralPartialEq for ReadPreference
Auto Trait Implementations§
impl Freeze for ReadPreference
impl RefUnwindSafe for ReadPreference
impl Send for ReadPreference
impl Sync for ReadPreference
impl Unpin for ReadPreference
impl UnwindSafe for ReadPreference
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