[][src]Struct couchbase::Bucket

pub struct Bucket { /* fields omitted */ }

Provides bucket-level access to collections and view operations

Implementations

impl Bucket[src]

pub fn default_collection(&self) -> Collection[src]

Opens the default collection (also used when a cluster with no collection support is used)

The collection API provides acess to the Key/Value operations. The default collection is also implicitly using the default scope.

pub fn name(&self) -> &str[src]

The name of the bucket

pub async fn ping<'_>(
    &'_ self,
    options: PingOptions
) -> CouchbaseResult<PingResult>
[src]

Executes a ping request

Arguments

  • options - allows to pass in custom options

Examples

Run a ping with default options.

This will return an async result, which can be consumed:

match  bucket.ping(PingOptions::default()).await {
    Ok(mut result) => {
        println!("Ping results {:?}", row);
    },
    Err(e) => panic!("Ping failed: {:?}", e),
}

See the PingResult for more information on what and how it can be consumed.

Auto Trait Implementations

impl !RefUnwindSafe for Bucket

impl Send for Bucket

impl Sync for Bucket

impl Unpin for Bucket

impl !UnwindSafe for Bucket

Blanket Implementations

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

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,