[][src]Struct echoloc::Payload

pub struct Payload { /* fields omitted */ }

The payload for sending a batch of Echo Events

Methods

impl Payload[src]

pub fn set_url(&mut self, val: CollectorUrl) -> &mut Self[src]

The collector url to use

pub fn set_events(&mut self, val: Vec<Event>) -> &mut Self[src]

The batch of events to send

pub fn set_logger(&mut self, val: Option<Logger>) -> &mut Self[src]

An optional slog logger

pub fn set_retry_count(&mut self, val: usize) -> &mut Self[src]

The retry count if an error occurred sending the batch

Trait Implementations

impl Runnable for Payload[src]

type Ok = ()

The type of a successful result

type Error = Err

The type of an error

impl Default for Payload[src]

impl Clone for Payload[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Payload[src]

Auto Trait Implementations

impl Sync for Payload

impl Send for Payload

impl Unpin for Payload

impl RefUnwindSafe for Payload

impl UnwindSafe for Payload

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]