[−][src]Struct echoloc::Event
An Echo Event
Methods
impl Event
[src]
pub fn set_event_type(&mut self, val: EventType) -> &mut Self
[src]
Echo Event Type
pub fn set_correlation_id(&mut self, val: Option<Uuid>) -> &mut Self
[src]
The correlation id
pub fn set_timestamp(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
[src]
The timestamp of the event. If unset, it will be set by the EchoClient.
If producing your own messages, the format of the date should be either of:
- An ISO-8601 date/time string (e.g. 2017-04-06T17:23:00-04:00)
- A number representing milliseconds since epoch (e.g. 1491514054000)
pub fn set_message_detail(
&mut self,
val: Option<HashMap<String, String>>
) -> &mut Self
[src]
&mut self,
val: Option<HashMap<String, String>>
) -> &mut Self
A place to store custom key/value pairs in the message, typically used when there isn't an appropriate root-level field.
pub fn set_start_timestamp(&mut self, val: Option<u64>) -> &mut Self
[src]
Sets the timestamp of millis since the epoch for the time at which this event started.
pub fn set_finish_timestamp(&mut self, val: Option<u64>) -> &mut Self
[src]
Sets the timestamp of millis since the epoch for the time at which this event finished.
pub fn set_duration(&mut self, val: Option<u64>) -> &mut Self
[src]
Sets the duration (time in milliseconds) that passed during this event.
pub fn set_duration_in_ms(&mut self, val: Option<u64>) -> &mut Self
[src]
Sets the duration (time in milliseconds) that passed during this event.
pub fn set_response_code(&mut self, val: Option<u16>) -> &mut Self
[src]
The HTTP response code returned by a performance event.
pub fn set_response(&mut self, val: Option<Response>) -> &mut Self
[src]
A more generic response used when a HTTP response code doesn't make sense. Typical values might be "success" or "failure".
impl Event
[src]
pub fn set_routing_key<T>(&mut self, routing_key: T) -> &mut Self where
T: Into<String>,
[src]
T: Into<String>,
Set the routing key field
pub fn set_message<T>(&mut self, message: T) -> &mut Self where
T: Into<String>,
[src]
T: Into<String>,
Set the message field
pub fn set_host<T>(&mut self, host: Option<T>) -> &mut Self where
T: Into<String>,
[src]
T: Into<String>,
Set the host field
pub fn set_application_version<T>(
&mut self,
application_version: Option<T>
) -> &mut Self where
T: Into<String>,
[src]
&mut self,
application_version: Option<T>
) -> &mut Self where
T: Into<String>,
Set the application version field
pub fn set_data_center<T>(&mut self, data_center: Option<T>) -> &mut Self where
T: Into<String>,
[src]
T: Into<String>,
Set the datacenter field
pub fn set_client_host_name<T>(
&mut self,
client_host_name: Option<T>
) -> &mut Self where
T: Into<String>,
[src]
&mut self,
client_host_name: Option<T>
) -> &mut Self where
T: Into<String>,
Set the client host name
pub fn set_destination_host_name<T>(
&mut self,
destination_host_name: Option<T>
) -> &mut Self where
T: Into<String>,
[src]
&mut self,
destination_host_name: Option<T>
) -> &mut Self where
T: Into<String>,
Set the destination host name
pub fn set_destination_path<T>(
&mut self,
destination_path: Option<T>
) -> &mut Self where
T: Into<String>,
[src]
&mut self,
destination_path: Option<T>
) -> &mut Self where
T: Into<String>,
Set the destination path
Trait Implementations
impl Runnable for Event
[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 PartialEq<Event> for Event
[src]
impl Clone for Event
[src]
fn clone(&self) -> Event
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Event
[src]
impl Debug for Event
[src]
impl Serialize for Event
[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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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>,