[][src]Struct extrahop::activitymap::rsp::Response

pub struct Response {
    pub warnings: Vec<Error>,
    pub from: u64,
    pub until: u64,
    pub edges: Vec<Edge>,
}

A successful response to a single topology API request.

Fields

warnings: Vec<Error>

Non-fatal errors encountered during the construction of the map. Items in this list indicate that the returned topology may be incomplete.

from: u64

The absolute UTC packet time at which data starts for the response, in milliseconds since epoch.

until: u64

The absolute UTC packet time at which data ends for the response, in milliseconds since epoch.

edges: Vec<Edge>

The collection of edges which matched the activity map query.

Methods

impl Response[src]

pub fn nodes(&self) -> HashSet<Oid>[src]

Computes the set of nodes in the response.

pub fn iter<'a>(&'a self) -> Iter<'a, Edge>[src]

Gets a slice iterator over the edges

pub fn is_complete(&self) -> bool[src]

Checks that there are no warnings which indicate an incomplete response from the appliance.

Trait Implementations

impl IntoIterator for Response[src]

type Item = Edge

The type of the elements being iterated over.

type IntoIter = IntoIter<Edge>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a Response[src]

type Item = &'a Edge

The type of the elements being iterated over.

type IntoIter = Iter<'a, Edge>

Which kind of iterator are we turning this into?

impl Clone for Response[src]

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

Performs copy-assignment from source. Read more

impl Default for Response[src]

impl From<Response> for Graph<Oid, Edge>[src]

impl Debug for Response[src]

impl Serialize for Response[src]

impl<'de> Deserialize<'de> for Response where
    Response: Default
[src]

Auto Trait Implementations

impl Send for Response

impl Sync for Response

Blanket Implementations

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T