Struct rustmann::RiemannClient
source · pub struct RiemannClient { /* private fields */ }
Implementations§
source§impl RiemannClient
impl RiemannClient
sourcepub fn new(options: &RiemannClientOptions) -> Self
pub fn new(options: &RiemannClientOptions) -> Self
Create RiemannClient
from options.
sourcepub async fn send_events(
&self,
events: Vec<Event>
) -> Result<(), RiemannClientError>
pub async fn send_events( &self, events: Vec<Event> ) -> Result<(), RiemannClientError>
Send events to riemann via this client.
sourcepub async fn send_query<S>(
&self,
query_string: S
) -> Result<Vec<Event>, RiemannClientError>
pub async fn send_query<S>( &self, query_string: S ) -> Result<Vec<Event>, RiemannClientError>
Query riemann server by riemann query syntax via this client.
Auto Trait Implementations§
impl !RefUnwindSafe for RiemannClient
impl Send for RiemannClient
impl Sync for RiemannClient
impl Unpin for RiemannClient
impl !UnwindSafe for RiemannClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more