Struct cdrs::client::CDRS [] [src]

pub struct CDRS<T: Authenticator, X: CDRSTransport> { /* fields omitted */ }

CDRS driver structure that provides a basic functionality to work with DB including establishing new connection, getting supported options, preparing and executing CQL queries, using compression and other.

Methods

impl<'a, T: Authenticator + 'a, X: CDRSTransport + 'a> CDRS<T, X>
[src]

The method creates new instance of CDRS driver. At this step an instance doesn't connected to DB Server. To create new instance two parameters are needed to be provided - addr is IP address of DB Server, authenticator is a selected authenticator that is supported by particular DB Server. There are few authenticators already provided by this trait.

The method makes an Option request to DB Server. As a response the server returns a map of supported options.

The method establishes connection to the server which address was provided on previous step. To create connection it's required to provide a compression method from a list of supported ones. In 4-th version of Cassandra protocol lz4 (Compression::Lz4) and snappy (Compression::Snappy) are supported. There is also one special compression method provided by CRDR driver, it's Compression::None that tells drivers that it should work without compression. If compression is provided then incomming frames will be decompressed automatically.

Trait Implementations

impl<T: Eq + Authenticator, X: Eq + CDRSTransport> Eq for CDRS<T, X>
[src]

impl<T: PartialEq + Authenticator, X: PartialEq + CDRSTransport> PartialEq for CDRS<T, X>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Ord + Authenticator, X: Ord + CDRSTransport> Ord for CDRS<T, X>
[src]

This method returns an Ordering between self and other. Read more

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

Compares and returns the maximum of two values. Read more

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

Compares and returns the minimum of two values. Read more

impl<T: PartialOrd + Authenticator, X: PartialOrd + CDRSTransport> PartialOrd for CDRS<T, X>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more