Struct mysql_common::constants::StatusFlags
[−]
pub struct StatusFlags { /* fields omitted */ }MySql server status flags
Methods
impl StatusFlags
const SERVER_STATUS_IN_TRANS: StatusFlags
SERVER_STATUS_IN_TRANS: StatusFlags = StatusFlags{bits: 1,}
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.
const SERVER_STATUS_AUTOCOMMIT: StatusFlags
SERVER_STATUS_AUTOCOMMIT: StatusFlags = StatusFlags{bits: 2,}
Server in auto_commit mode.
const SERVER_MORE_RESULTS_EXISTS: StatusFlags
SERVER_MORE_RESULTS_EXISTS: StatusFlags = StatusFlags{bits: 8,}
Multi query - next query exists.
const SERVER_STATUS_NO_GOOD_INDEX_USED: StatusFlags
SERVER_STATUS_NO_GOOD_INDEX_USED: StatusFlags = StatusFlags{bits: 16,}
const SERVER_STATUS_NO_INDEX_USED: StatusFlags
SERVER_STATUS_NO_INDEX_USED: StatusFlags = StatusFlags{bits: 32,}
const SERVER_STATUS_CURSOR_EXISTS: StatusFlags
SERVER_STATUS_CURSOR_EXISTS: StatusFlags = StatusFlags{bits: 64,}
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.
const SERVER_STATUS_LAST_ROW_SENT: StatusFlags
SERVER_STATUS_LAST_ROW_SENT: StatusFlags = StatusFlags{bits: 128,}
This flag is sent when a read-only cursor is exhausted, in reply to COM_STMT_FETCH command.
const SERVER_STATUS_DB_DROPPED: StatusFlags
SERVER_STATUS_DB_DROPPED: StatusFlags = StatusFlags{bits: 256,}
A database was dropped.
const SERVER_STATUS_NO_BACKSLASH_ESCAPES: StatusFlags
SERVER_STATUS_NO_BACKSLASH_ESCAPES: StatusFlags = StatusFlags{bits: 512,}
const SERVER_STATUS_METADATA_CHANGED: StatusFlags
SERVER_STATUS_METADATA_CHANGED: StatusFlags = StatusFlags{bits: 1024,}
Sent to the client if after a prepared statement reprepare we discovered that the new statement returns a different number of result set columns.
const SERVER_QUERY_WAS_SLOW: StatusFlags
SERVER_QUERY_WAS_SLOW: StatusFlags = StatusFlags{bits: 2048,}
const SERVER_PS_OUT_PARAMS: StatusFlags
SERVER_PS_OUT_PARAMS: StatusFlags = StatusFlags{bits: 4096,}
To mark ResultSet containing output parameter values.
const SERVER_STATUS_IN_TRANS_READONLY: StatusFlags
SERVER_STATUS_IN_TRANS_READONLY: StatusFlags = StatusFlags{bits: 8192,}
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.
const SERVER_SESSION_STATE_CHANGED: StatusFlags
SERVER_SESSION_STATE_CHANGED: StatusFlags = StatusFlags{bits: 16384,}
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.
fn empty() -> StatusFlags
Returns an empty set of flags.
fn all() -> StatusFlags
Returns the set containing all flags.
fn bits(&self) -> u16
Returns the raw value of the flags currently stored.
fn from_bits(bits: u16) -> Option<StatusFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u16) -> StatusFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true if no flags are currently stored.
fn is_all(&self) -> bool
Returns true if all flags are currently set.
fn intersects(&self, other: StatusFlags) -> bool
Returns true if there are flags common to both self and other.
fn contains(&self, other: StatusFlags) -> bool
Returns true all of the flags in other are contained within self.
fn insert(&mut self, other: StatusFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: StatusFlags)
Removes the specified flags in-place.
fn toggle(&mut self, other: StatusFlags)
Toggles the specified flags in-place.
fn set(&mut self, other: StatusFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for StatusFlags
impl PartialEq for StatusFlags
fn eq(&self, __arg_0: &StatusFlags) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StatusFlags) -> bool
This method tests for !=.
impl Eq for StatusFlags
impl Clone for StatusFlags
fn clone(&self) -> StatusFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialOrd for StatusFlags
fn partial_cmp(&self, __arg_0: &StatusFlags) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &StatusFlags) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &StatusFlags) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &StatusFlags) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &StatusFlags) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for StatusFlags
fn cmp(&self, __arg_0: &StatusFlags) -> Ordering
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for StatusFlags
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for StatusFlags
impl Binary for StatusFlags
impl Octal for StatusFlags
impl LowerHex for StatusFlags
impl UpperHex for StatusFlags
impl BitOr for StatusFlags
type Output = StatusFlags
The resulting type after applying the | operator.
fn bitor(self, other: StatusFlags) -> StatusFlags
Returns the union of the two sets of flags.
impl BitOrAssign for StatusFlags
fn bitor_assign(&mut self, other: StatusFlags)
Adds the set of flags.
impl BitXor for StatusFlags
type Output = StatusFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: StatusFlags) -> StatusFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for StatusFlags
fn bitxor_assign(&mut self, other: StatusFlags)
Toggles the set of flags.
impl BitAnd for StatusFlags
type Output = StatusFlags
The resulting type after applying the & operator.
fn bitand(self, other: StatusFlags) -> StatusFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for StatusFlags
fn bitand_assign(&mut self, other: StatusFlags)
Disables all flags disabled in the set.
impl Sub for StatusFlags
type Output = StatusFlags
The resulting type after applying the - operator.
fn sub(self, other: StatusFlags) -> StatusFlags
Returns the set difference of the two sets of flags.
impl SubAssign for StatusFlags
fn sub_assign(&mut self, other: StatusFlags)
Disables all flags enabled in the set.
impl Not for StatusFlags
type Output = StatusFlags
The resulting type after applying the ! operator.
fn not(self) -> StatusFlags
Returns the complement of this set of flags.
impl Extend<StatusFlags> for StatusFlags
fn extend<T: IntoIterator<Item = StatusFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<StatusFlags> for StatusFlags
fn from_iter<T: IntoIterator<Item = StatusFlags>>(iterator: T) -> StatusFlags
Creates a value from an iterator. Read more