pub enum UndoPageType {
Insert,
Update,
Unknown(u16),
}Expand description
Undo page types.
§Examples
use idb::innodb::undo::UndoPageType;
let insert = UndoPageType::from_u16(1);
assert_eq!(insert, UndoPageType::Insert);
assert_eq!(insert.name(), "INSERT");
let update = UndoPageType::from_u16(2);
assert_eq!(update, UndoPageType::Update);
assert_eq!(update.name(), "UPDATE");
let unknown = UndoPageType::from_u16(99);
assert_eq!(unknown, UndoPageType::Unknown(99));
assert_eq!(unknown.name(), "UNKNOWN");Variants§
Insert
Insert undo log (INSERT operations only)
Update
Update undo log (UPDATE and DELETE operations)
Unknown(u16)
Unknown type
Implementations§
Trait Implementations§
Source§impl Clone for UndoPageType
impl Clone for UndoPageType
Source§fn clone(&self) -> UndoPageType
fn clone(&self) -> UndoPageType
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 UndoPageType
Source§impl Debug for UndoPageType
impl Debug for UndoPageType
impl Eq for UndoPageType
Source§impl PartialEq for UndoPageType
impl PartialEq for UndoPageType
Source§impl Serialize for UndoPageType
impl Serialize for UndoPageType
impl StructuralPartialEq for UndoPageType
Auto Trait Implementations§
impl Freeze for UndoPageType
impl RefUnwindSafe for UndoPageType
impl Send for UndoPageType
impl Sync for UndoPageType
impl Unpin for UndoPageType
impl UnsafeUnpin for UndoPageType
impl UnwindSafe for UndoPageType
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more