pub enum IsolationLevel {
ReadUncommitted,
ReadCommitted,
}Expand description
Controls which records are visible to this consumer.
Maps to Kafka’s isolation.level configuration and the isolation_level
field in the Fetch request (wire value: i8).
The default is ReadUncommitted for
backward compatibility.
Variants§
ReadUncommitted
All records are visible, including those from open or aborted
transactions. Equivalent to isolation.level=read_uncommitted.
ReadCommitted
Only records from committed transactions (and non-transactional
records) are visible. Equivalent to isolation.level=read_committed.
Trait Implementations§
Source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
Source§fn clone(&self) -> IsolationLevel
fn clone(&self) -> IsolationLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IsolationLevel
Source§impl Debug for IsolationLevel
impl Debug for IsolationLevel
impl Eq for IsolationLevel
Source§impl PartialEq for IsolationLevel
impl PartialEq for IsolationLevel
Source§fn eq(&self, other: &IsolationLevel) -> bool
fn eq(&self, other: &IsolationLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IsolationLevel
Auto Trait Implementations§
impl Freeze for IsolationLevel
impl RefUnwindSafe for IsolationLevel
impl Send for IsolationLevel
impl Sync for IsolationLevel
impl Unpin for IsolationLevel
impl UnsafeUnpin for IsolationLevel
impl UnwindSafe for IsolationLevel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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