Struct msql_srv::StatusFlags [−][src]
MySql server status flags
Implementations
impl StatusFlags
[src]
pub const SERVER_STATUS_IN_TRANS: StatusFlags
[src]
Is raised when a multi-statement transaction has been started, either explicitly, by means of BEGIN or COMMIT AND CHAIN, or implicitly, by the first transactional statement, when autocommit=off.
pub const SERVER_STATUS_AUTOCOMMIT: StatusFlags
[src]
Server in auto_commit mode.
pub const SERVER_MORE_RESULTS_EXISTS: StatusFlags
[src]
Multi query - next query exists.
pub const SERVER_STATUS_NO_GOOD_INDEX_USED: StatusFlags
[src]
pub const SERVER_STATUS_NO_INDEX_USED: StatusFlags
[src]
pub const SERVER_STATUS_CURSOR_EXISTS: StatusFlags
[src]
The server was able to fulfill the clients request and opened a read-only non-scrollable cursor for a query. This flag comes in reply to COM_STMT_EXECUTE and COM_STMT_FETCH commands. Used by Binary Protocol Resultset to signal that COM_STMT_FETCH must be used to fetch the row-data.
pub const SERVER_STATUS_LAST_ROW_SENT: StatusFlags
[src]
This flag is sent when a read-only cursor is exhausted, in reply to COM_STMT_FETCH command.
pub const SERVER_STATUS_DB_DROPPED: StatusFlags
[src]
A database was dropped.
pub const SERVER_STATUS_NO_BACKSLASH_ESCAPES: StatusFlags
[src]
pub const SERVER_STATUS_METADATA_CHANGED: StatusFlags
[src]
Sent to the client if after a prepared statement reprepare we discovered that the new statement returns a different number of result set columns.
pub const SERVER_QUERY_WAS_SLOW: StatusFlags
[src]
pub const SERVER_PS_OUT_PARAMS: StatusFlags
[src]
To mark ResultSet containing output parameter values.
pub const SERVER_STATUS_IN_TRANS_READONLY: StatusFlags
[src]
Set at the same time as SERVER_STATUS_IN_TRANS if the started multi-statement transaction is a read-only transaction. Cleared when the transaction commits or aborts. Since this flag is sent to clients in OK and EOF packets, the flag indicates the transaction status at the end of command execution.
pub const SERVER_SESSION_STATE_CHANGED: StatusFlags
[src]
This status flag, when on, implies that one of the state information has changed on the server because of the execution of the last statement.
pub const fn empty() -> StatusFlags
[src]
Returns an empty set of flags
pub const fn all() -> StatusFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u16
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u16) -> Option<StatusFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u16) -> StatusFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u16) -> StatusFlags
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: StatusFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: StatusFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: StatusFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: StatusFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: StatusFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: StatusFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for StatusFlags
[src]
impl BitAnd<StatusFlags> for StatusFlags
[src]
type Output = StatusFlags
The resulting type after applying the &
operator.
pub fn bitand(self, other: StatusFlags) -> StatusFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<StatusFlags> for StatusFlags
[src]
pub fn bitand_assign(&mut self, other: StatusFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<StatusFlags> for StatusFlags
[src]
type Output = StatusFlags
The resulting type after applying the |
operator.
pub fn bitor(self, other: StatusFlags) -> StatusFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<StatusFlags> for StatusFlags
[src]
pub fn bitor_assign(&mut self, other: StatusFlags)
[src]
Adds the set of flags.
impl BitXor<StatusFlags> for StatusFlags
[src]
type Output = StatusFlags
The resulting type after applying the ^
operator.
pub fn bitxor(self, other: StatusFlags) -> StatusFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<StatusFlags> for StatusFlags
[src]
pub fn bitxor_assign(&mut self, other: StatusFlags)
[src]
Toggles the set of flags.
impl Clone for StatusFlags
[src]
pub fn clone(&self) -> StatusFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StatusFlags
[src]
impl Debug for StatusFlags
[src]
impl Eq for StatusFlags
[src]
impl Extend<StatusFlags> for StatusFlags
[src]
pub fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = StatusFlags>,
[src]
T: IntoIterator<Item = StatusFlags>,
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<StatusFlags> for StatusFlags
[src]
pub fn from_iter<T>(iterator: T) -> StatusFlags where
T: IntoIterator<Item = StatusFlags>,
[src]
T: IntoIterator<Item = StatusFlags>,
impl Hash for StatusFlags
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for StatusFlags
[src]
impl Not for StatusFlags
[src]
type Output = StatusFlags
The resulting type after applying the !
operator.
pub fn not(self) -> StatusFlags
[src]
Returns the complement of this set of flags.
impl Octal for StatusFlags
[src]
impl Ord for StatusFlags
[src]
pub fn cmp(&self, other: &StatusFlags) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<StatusFlags> for StatusFlags
[src]
pub fn eq(&self, other: &StatusFlags) -> bool
[src]
pub fn ne(&self, other: &StatusFlags) -> bool
[src]
impl PartialOrd<StatusFlags> for StatusFlags
[src]
pub fn partial_cmp(&self, other: &StatusFlags) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for StatusFlags
[src]
impl StructuralPartialEq for StatusFlags
[src]
impl Sub<StatusFlags> for StatusFlags
[src]
type Output = StatusFlags
The resulting type after applying the -
operator.
pub fn sub(self, other: StatusFlags) -> StatusFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<StatusFlags> for StatusFlags
[src]
pub fn sub_assign(&mut self, other: StatusFlags)
[src]
Disables all flags enabled in the set.
impl UpperHex for StatusFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for StatusFlags
[src]
impl Send for StatusFlags
[src]
impl Sync for StatusFlags
[src]
impl Unpin for StatusFlags
[src]
impl UnwindSafe for StatusFlags
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,