Struct rabble::CorrelationId [] [src]

pub struct CorrelationId {
    pub pid: Pid,
    pub connection: Option<u64>,
    pub request: Option<u64>,
}

Match requests through the system with their handlers

All correlation ids must have a pid. Sometimes individual connections/requests aren't tracked so that field is optional.

Fields

Methods

impl CorrelationId
[src]

Create a correlation id that matches a handler and connection

Create a correlation id that matches a handler, connection, and request

Clone the CorrelationId and increment the request counter

Trait Implementations

impl Debug for CorrelationId
[src]

Formats the value using the given formatter.

impl Hash for CorrelationId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for CorrelationId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for CorrelationId
[src]

impl PartialEq for CorrelationId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.