pub struct MessageFlag(/* private fields */);Expand description
Message flags as a type-safe bitflag.
Implementations§
Source§impl MessageFlag
impl MessageFlag
pub const NONE: Self
pub const COMPRESSED: Self
pub const MULTI_TAGS: Self
pub const TRANSACTION_PREPARED: Self
pub const TRANSACTION_COMMIT: Self
pub const TRANSACTION_ROLLBACK: Self
Sourcepub fn is_compressed(&self) -> bool
pub fn is_compressed(&self) -> bool
Returns true if the compressed flag is set.
Returns true if the multi-tags flag is set.
Sourcepub fn is_transaction_prepared(&self) -> bool
pub fn is_transaction_prepared(&self) -> bool
Returns true if the transaction prepared flag is set.
Sourcepub fn is_transaction_commit(&self) -> bool
pub fn is_transaction_commit(&self) -> bool
Returns true if the transaction commit flag is set.
Sourcepub fn is_transaction_rollback(&self) -> bool
pub fn is_transaction_rollback(&self) -> bool
Returns true if the transaction rollback flag is set.
Trait Implementations§
Source§impl BitAnd for MessageFlag
impl BitAnd for MessageFlag
Source§impl BitAndAssign for MessageFlag
impl BitAndAssign for MessageFlag
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for MessageFlag
impl BitOr for MessageFlag
Source§impl BitOrAssign for MessageFlag
impl BitOrAssign for MessageFlag
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for MessageFlag
impl Clone for MessageFlag
Source§fn clone(&self) -> MessageFlag
fn clone(&self) -> MessageFlag
Returns a duplicate 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 MessageFlag
impl Debug for MessageFlag
Source§impl Default for MessageFlag
impl Default for MessageFlag
Source§fn default() -> MessageFlag
fn default() -> MessageFlag
Returns the “default value” for a type. Read more
Source§impl From<MessageFlag> for i32
impl From<MessageFlag> for i32
Source§fn from(flag: MessageFlag) -> Self
fn from(flag: MessageFlag) -> Self
Converts to this type from the input type.
Source§impl From<i32> for MessageFlag
impl From<i32> for MessageFlag
Source§impl PartialEq for MessageFlag
impl PartialEq for MessageFlag
impl Copy for MessageFlag
impl Eq for MessageFlag
impl StructuralPartialEq for MessageFlag
Auto Trait Implementations§
impl Freeze for MessageFlag
impl RefUnwindSafe for MessageFlag
impl Send for MessageFlag
impl Sync for MessageFlag
impl Unpin for MessageFlag
impl UnsafeUnpin for MessageFlag
impl UnwindSafe for MessageFlag
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§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.