[−][src]Struct echoloc::Payload
The payload for sending a batch of Echo Event
s
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
fn run(&mut self) -> Result<Self::Ok, Self::Error>
[src]
fn should_retry(&self, _error: &Self::Error) -> bool
[src]
fn store_result(&mut self, _result: Result<Self::Ok, Self::Error>)
[src]
impl Clone for Payload
[src]
fn clone(&self) -> Payload
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Payload
[src]
impl Debug for Payload
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,