[−][src]Struct rustmann::RiemannClient
Implementations
impl RiemannClient
[src]
pub fn new(options: &RiemannClientOptions) -> Self
[src]
Create RiemannClient
from options.
pub async fn send_events(
&self,
events: Vec<Event>
) -> Result<(), RiemannClientError>
[src]
&self,
events: Vec<Event>
) -> Result<(), RiemannClientError>
Send events to riemann via this client.
pub async fn send_query<S>(
&self,
query_string: S
) -> Result<Vec<Event>, RiemannClientError> where
S: AsRef<str>,
[src]
&self,
query_string: S
) -> Result<Vec<Event>, RiemannClientError> where
S: AsRef<str>,
Query riemann server by riemann query syntax via this client.
Auto Trait Implementations
impl !RefUnwindSafe for RiemannClient
[src]
impl Send for RiemannClient
[src]
impl Sync for RiemannClient
[src]
impl Unpin for RiemannClient
[src]
impl !UnwindSafe for RiemannClient
[src]
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,
pub 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.
pub 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>,