pub struct TransientStorage { /* private fields */ }Expand description
This storage implementation just holds elements in memory.
Implementations§
Source§impl TransientStorage
impl TransientStorage
pub fn new() -> TransientStorage
Trait Implementations§
Source§impl Storage for TransientStorage
impl Storage for TransientStorage
fn get_connection(&self, at: Timestamp) -> Option<Boo<'_, Connection>>
fn get_span(&self, at: Timestamp) -> Option<Boo<'_, Span>>
fn get_span_event(&self, at: Timestamp) -> Option<Boo<'_, SpanEvent>>
fn get_event(&self, at: Timestamp) -> Option<Boo<'_, Event>>
fn get_all_connections( &self, ) -> Box<dyn Iterator<Item = Boo<'_, Connection>> + '_>
fn get_all_spans(&self) -> Box<dyn Iterator<Item = Boo<'_, Span>> + '_>
fn get_all_span_events( &self, ) -> Box<dyn Iterator<Item = Boo<'_, SpanEvent>> + '_>
fn get_all_events(&self) -> Box<dyn Iterator<Item = Boo<'_, Event>> + '_>
fn get_all_indexes(&self) -> Box<dyn Iterator<Item = Boo<'_, String>> + '_>
fn insert_connection(&mut self, connection: Connection)
fn insert_span(&mut self, span: Span)
fn insert_span_event(&mut self, span_event: SpanEvent)
fn insert_event(&mut self, event: Event)
fn insert_index(&mut self, name: String)
fn update_connection_disconnected( &mut self, at: Timestamp, disconnected_at: Timestamp, )
fn update_span_closed(&mut self, at: Timestamp, closed_at: Timestamp)
fn update_span_fields(&mut self, at: Timestamp, fields: BTreeMap<String, Value>)
fn update_span_follows(&mut self, at: Timestamp, follows: SpanKey)
fn drop_connections(&mut self, connections: &[Timestamp])
fn drop_spans(&mut self, spans: &[Timestamp])
fn drop_span_events(&mut self, span_events: &[Timestamp])
fn drop_events(&mut self, events: &[Timestamp])
fn drop_index(&mut self, name: &str)
Auto Trait Implementations§
impl Freeze for TransientStorage
impl RefUnwindSafe for TransientStorage
impl Send for TransientStorage
impl Sync for TransientStorage
impl Unpin for TransientStorage
impl UnwindSafe for TransientStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more