#[non_exhaustive]pub struct HtonFlags(/* private fields */);Expand description
A set of handlerton flags (the HTON_* bits from sql/handler.h).
Returned from Handlerton::flags. The
zero-config engine sets HtonFlags::CAN_RECREATE, which is therefore the
trait default; return HtonFlags::NONE to clear it.
use mysql_handler::hton::HtonFlags;
let f = HtonFlags::NONE | HtonFlags::CAN_RECREATE;
assert!(f.contains(HtonFlags::CAN_RECREATE));Implementations§
Source§impl HtonFlags
impl HtonFlags
Sourcepub const CAN_RECREATE: Self
pub const CAN_RECREATE: Self
HTON_CAN_RECREATE: the engine implements TRUNCATE by recreating the
table. The flag the zero-config engine sets today.
Trait Implementations§
impl Copy for HtonFlags
impl Eq for HtonFlags
impl StructuralPartialEq for HtonFlags
Auto Trait Implementations§
impl Freeze for HtonFlags
impl RefUnwindSafe for HtonFlags
impl Send for HtonFlags
impl Sync for HtonFlags
impl Unpin for HtonFlags
impl UnsafeUnpin for HtonFlags
impl UnwindSafe for HtonFlags
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