[]Struct c3p0_mysql::r2d2::mysql::consts::CapabilityFlags

pub struct CapabilityFlags { /* fields omitted */ }

Client capability flags

Methods

impl CapabilityFlags

pub const CLIENT_LONG_PASSWORD: CapabilityFlags

Use the improved version of Old Password Authentication. Assumed to be set since 4.1.1.

pub const CLIENT_FOUND_ROWS: CapabilityFlags

Send found rows instead of affected rows in EOF_Packet.

pub const CLIENT_LONG_FLAG: CapabilityFlags

Get all column flags. Longer flags in Protocol::ColumnDefinition320.

Server

Supports longer flags.

Client

Expects longer flags.

pub const CLIENT_CONNECT_WITH_DB: CapabilityFlags

Database (schema) name can be specified on connect in Handshake Response Packet.

Server

Supports schema-name in Handshake Response Packet.

Client

Handshake Response Packet contains a schema-name.

pub const CLIENT_NO_SCHEMA: CapabilityFlags

Don't allow database.table.column.

pub const CLIENT_COMPRESS: CapabilityFlags

Compression protocol supported.

Server

Supports compression.

Client

Switches to Compression compressed protocol after successful authentication.

pub const CLIENT_ODBC: CapabilityFlags

Special handling of ODBC behavior.

pub const CLIENT_LOCAL_FILES: CapabilityFlags

Can use LOAD DATA LOCAL.

Server

Enables the LOCAL INFILE request of LOAD DATA|XML.

Client

Will handle LOCAL INFILE request.

pub const CLIENT_IGNORE_SPACE: CapabilityFlags

Ignore spaces before '('.

Server

Parser can ignore spaces before '('.

Client

Let the parser ignore spaces before '('.

pub const CLIENT_PROTOCOL_41: CapabilityFlags

pub const CLIENT_INTERACTIVE: CapabilityFlags

This is an interactive client. Use System_variables::net_wait_timeout versus System_variables::net_interactive_timeout.

Server

Supports interactive and noninteractive clients.

Client

Client is interactive.

pub const CLIENT_SSL: CapabilityFlags

Use SSL encryption for the session.

Server

Supports SSL

Client

Switch to SSL after sending the capability-flags.

pub const CLIENT_IGNORE_SIGPIPE: CapabilityFlags

Client only flag. Not used.

Client

Do not issue SIGPIPE if network failures occur (libmysqlclient only).

pub const CLIENT_TRANSACTIONS: CapabilityFlags

Client knows about transactions.

Server

Can send status flags in OK_Packet / EOF_Packet.

Client

Expects status flags in OK_Packet / EOF_Packet.

Note

This flag is optional in 3.23, but always set by the server since 4.0.

pub const CLIENT_RESERVED: CapabilityFlags

pub const CLIENT_SECURE_CONNECTION: CapabilityFlags

pub const CLIENT_MULTI_STATEMENTS: CapabilityFlags

Enable/disable multi-stmt support. Also sets CLIENT_MULTI_RESULTS. Currently not checked anywhere.

Server

Can handle multiple statements per COM_QUERY and COM_STMT_PREPARE.

Client

May send multiple statements per COM_QUERY and COM_STMT_PREPARE.

pub const CLIENT_MULTI_RESULTS: CapabilityFlags

Enable/disable multi-results.

Server

Can send multiple resultsets for COM_QUERY. Error if the server needs to send them and client does not support them.

Client

Can handle multiple resultsets for COM_QUERY.

Requires

CLIENT_PROTOCOL_41

pub const CLIENT_PS_MULTI_RESULTS: CapabilityFlags

Multi-results and OUT parameters in PS-protocol.

Server

Can send multiple resultsets for COM_STMT_EXECUTE.

Client

Can handle multiple resultsets for COM_STMT_EXECUTE.

Requires

CLIENT_PROTOCOL_41

pub const CLIENT_PLUGIN_AUTH: CapabilityFlags

Client supports plugin authentication.

Server

Sends extra data in Initial Handshake Packet and supports the pluggable authentication protocol.

Client

Supports authentication plugins.

Requires

CLIENT_PROTOCOL_41

pub const CLIENT_CONNECT_ATTRS: CapabilityFlags

Client supports connection attributes.

Server

Permits connection attributes in Protocol::HandshakeResponse41.

Client

Sends connection attributes in Protocol::HandshakeResponse41.

pub const CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA: CapabilityFlags

Enable authentication response packet to be larger than 255 bytes. When the ability to change default plugin require that the initial password field in the Protocol::HandshakeResponse41 paclet can be of arbitrary size. However, the 4.1 client-server protocol limits the length of the auth-data-field sent from client to server to 255 bytes. The solution is to change the type of the field to a true length encoded string and indicate the protocol change with this client capability flag.

Server

Understands length-encoded integer for auth response data in Protocol::HandshakeResponse41.

Client

Length of auth response data in Protocol::HandshakeResponse41 is a length-encoded integer.

Note

The flag was introduced in 5.6.6, but had the wrong value.

pub const CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS: CapabilityFlags

Don't close the connection for a user account with expired password.

Server

Announces support for expired password extension.

Client

Can handle expired passwords.

pub const CLIENT_SESSION_TRACK: CapabilityFlags

Capable of handling server state change information. Its a hint to the server to include the state change information in OK_Packet.

Server

Can set SERVER_SESSION_STATE_CHANGED in the SERVER_STATUS_flags_enum and send Session State Information in a OK_Packet.

Client

Expects the server to send Session State Information in a OK_Packet.

pub const CLIENT_DEPRECATE_EOF: CapabilityFlags

Client no longer needs EOF_Packet and will use OK_Packet instead.

Server

Can send OK after a Text Resultset.

Client

Expects an OK_Packet (instead of EOF_Packet) after the resultset rows of a Text Resultset.

Background

To support CLIENT_SESSION_TRACK, additional information must be sent after all successful commands. Although the OK_Packet is extensible, the EOF_Packet is not due to the overlap of its bytes with the content of the Text Resultset Row.

Therefore, the EOF_Packet in the Text Resultset is replaced with an OK_Packet. EOF_Packet is deprecated as of MySQL 5.7.5.

pub const CLIENT_PROGRESS_OBSOLETE: CapabilityFlags

Client or server supports progress reports within error packet.

pub const CLIENT_SSL_VERIFY_SERVER_CERT: CapabilityFlags

Verify server certificate. Client only flag.

Deprecated in favor of –ssl-mode.

pub const CLIENT_REMEMBER_OPTIONS: CapabilityFlags

Don't reset the options after an unsuccessful connect. Client only flag.

pub const fn empty() -> CapabilityFlags

Returns an empty set of flags

pub const fn all() -> CapabilityFlags

Returns the set containing all flags.

pub const fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<CapabilityFlags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> CapabilityFlags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool

Returns true if all flags are currently set.

pub const fn intersects(&self, other: CapabilityFlags) -> bool

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: CapabilityFlags) -> bool

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: CapabilityFlags)

Inserts the specified flags in-place.

pub fn remove(&mut self, other: CapabilityFlags)

Removes the specified flags in-place.

pub fn toggle(&mut self, other: CapabilityFlags)

Toggles the specified flags in-place.

pub fn set(&mut self, other: CapabilityFlags, value: bool)

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl BitOr<CapabilityFlags> for CapabilityFlags

type Output = CapabilityFlags

The resulting type after applying the | operator.

fn bitor(self, other: CapabilityFlags) -> CapabilityFlags

Returns the union of the two sets of flags.

impl Binary for CapabilityFlags

impl Copy for CapabilityFlags

impl SubAssign<CapabilityFlags> for CapabilityFlags

fn sub_assign(&mut self, other: CapabilityFlags)

Disables all flags enabled in the set.

impl FromIterator<CapabilityFlags> for CapabilityFlags

impl Not for CapabilityFlags

type Output = CapabilityFlags

The resulting type after applying the ! operator.

fn not(self) -> CapabilityFlags

Returns the complement of this set of flags.

impl Clone for CapabilityFlags

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl BitOrAssign<CapabilityFlags> for CapabilityFlags

fn bitor_assign(&mut self, other: CapabilityFlags)

Adds the set of flags.

impl Eq for CapabilityFlags

impl BitXor<CapabilityFlags> for CapabilityFlags

type Output = CapabilityFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: CapabilityFlags) -> CapabilityFlags

Returns the left flags, but with all the right flags toggled.

impl PartialEq<CapabilityFlags> for CapabilityFlags

impl BitAndAssign<CapabilityFlags> for CapabilityFlags

fn bitand_assign(&mut self, other: CapabilityFlags)

Disables all flags disabled in the set.

impl Octal for CapabilityFlags

impl BitXorAssign<CapabilityFlags> for CapabilityFlags

fn bitxor_assign(&mut self, other: CapabilityFlags)

Toggles the set of flags.

impl PartialOrd<CapabilityFlags> for CapabilityFlags

impl UpperHex for CapabilityFlags

impl Extend<CapabilityFlags> for CapabilityFlags

impl Sub<CapabilityFlags> for CapabilityFlags

type Output = CapabilityFlags

The resulting type after applying the - operator.

fn sub(self, other: CapabilityFlags) -> CapabilityFlags

Returns the set difference of the two sets of flags.

impl Hash for CapabilityFlags

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for CapabilityFlags

impl Ord for CapabilityFlags

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl LowerHex for CapabilityFlags

impl BitAnd<CapabilityFlags> for CapabilityFlags

type Output = CapabilityFlags

The resulting type after applying the & operator.

fn bitand(self, other: CapabilityFlags) -> CapabilityFlags

Returns the intersection between the two sets of flags.

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self