pub enum IsolationLevel {
ReadCommitted,
ReadUncommitted,
}
Expand description
Using READ_UNCOMMITTED
(isolation_level = 0
) makes all records visible. With READ_COMMITTED
(isolation_level = 1
), non-transactional and COMMITTED
transactional records are visible. To be more
concrete, READ_COMMITTED
returns all data from offsets smaller than the current LSO (last stable offset), and
enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard
ABORTED
transactional records.
As per KIP-98 the default is READ_UNCOMMITTED
.
Added in version 2.
Variants§
Trait Implementations§
Source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
Source§fn clone(&self) -> IsolationLevel
fn clone(&self) -> IsolationLevel
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 IsolationLevel
impl Debug for IsolationLevel
Source§impl Default for IsolationLevel
impl Default for IsolationLevel
Source§impl From<IsolationLevel> for Int8
impl From<IsolationLevel> for Int8
Source§fn from(isolation_level: IsolationLevel) -> Self
fn from(isolation_level: IsolationLevel) -> Self
Converts to this type from the input type.
impl Copy 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 UnwindSafe for IsolationLevel
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