venator_engine

Struct TransientStorage

Source
pub struct TransientStorage { /* private fields */ }
Expand description

This storage implementation just holds elements in memory.

Implementations§

Trait Implementations§

Source§

impl Storage for TransientStorage

Source§

fn get_connection(&self, at: Timestamp) -> Option<Boo<'_, Connection>>

Source§

fn get_span(&self, at: Timestamp) -> Option<Boo<'_, Span>>

Source§

fn get_span_event(&self, at: Timestamp) -> Option<Boo<'_, SpanEvent>>

Source§

fn get_event(&self, at: Timestamp) -> Option<Boo<'_, Event>>

Source§

fn get_all_connections( &self, ) -> Box<dyn Iterator<Item = Boo<'_, Connection>> + '_>

Source§

fn get_all_spans(&self) -> Box<dyn Iterator<Item = Boo<'_, Span>> + '_>

Source§

fn get_all_span_events( &self, ) -> Box<dyn Iterator<Item = Boo<'_, SpanEvent>> + '_>

Source§

fn get_all_events(&self) -> Box<dyn Iterator<Item = Boo<'_, Event>> + '_>

Source§

fn get_all_indexes(&self) -> Box<dyn Iterator<Item = Boo<'_, String>> + '_>

Source§

fn insert_connection(&mut self, connection: Connection)

Source§

fn insert_span(&mut self, span: Span)

Source§

fn insert_span_event(&mut self, span_event: SpanEvent)

Source§

fn insert_event(&mut self, event: Event)

Source§

fn insert_index(&mut self, name: String)

Source§

fn update_connection_disconnected( &mut self, at: Timestamp, disconnected_at: Timestamp, )

Source§

fn update_span_closed(&mut self, at: Timestamp, closed_at: Timestamp)

Source§

fn update_span_fields(&mut self, at: Timestamp, fields: BTreeMap<String, Value>)

Source§

fn update_span_follows(&mut self, at: Timestamp, follows: SpanKey)

Source§

fn drop_connections(&mut self, connections: &[Timestamp])

Source§

fn drop_spans(&mut self, spans: &[Timestamp])

Source§

fn drop_span_events(&mut self, span_events: &[Timestamp])

Source§

fn drop_events(&mut self, events: &[Timestamp])

Source§

fn drop_index(&mut self, name: &str)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.