[−][src]Struct couchbase::Bucket
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]
&'_ self,
options: PingOptions
) -> CouchbaseResult<PingResult>
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]
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,
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, 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.
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.
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>,