[][src]Struct aw_client_rust::AwClient

pub struct AwClient {
    pub baseurl: String,
    pub name: String,
    pub hostname: String,
    // some fields omitted
}

Fields

baseurl: Stringname: Stringhostname: String

Implementations

impl AwClient[src]

pub fn new(ip: &str, port: &str, name: &str) -> AwClient[src]

pub fn get_bucket(&self, bucketname: &str) -> Result<Bucket, Error>[src]

pub fn get_buckets(&self) -> Result<HashMap<String, Bucket>, Error>[src]

pub fn create_bucket(
    &self,
    bucketname: &str,
    buckettype: &str
) -> Result<(), Error>
[src]

pub fn delete_bucket(&self, bucketname: &str) -> Result<(), Error>[src]

pub fn get_events(&self, bucketname: &str) -> Result<Vec<Event>, Error>[src]

pub fn insert_event(&self, bucketname: &str, event: &Event) -> Result<(), Error>[src]

pub fn heartbeat(
    &self,
    bucketname: &str,
    event: &Event,
    pulsetime: f64
) -> Result<(), Error>
[src]

pub fn delete_event(&self, bucketname: &str, event_id: i64) -> Result<(), Error>[src]

pub fn get_event_count(&self, bucketname: &str) -> Result<i64, Error>[src]

pub fn get_info(&self) -> Result<Info, Error>[src]

Trait Implementations

impl Debug for AwClient[src]

Auto Trait Implementations

impl !RefUnwindSafe for AwClient

impl Send for AwClient

impl Sync for AwClient

impl Unpin for AwClient

impl !UnwindSafe for AwClient

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.