Struct TransientStorage

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

This storage just holds all entities in memory.

Implementations§

Trait Implementations§

Source§

impl Default for TransientStorage

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Storage for TransientStorage

Source§

fn get_resource(&self, at: Timestamp) -> Result<Arc<Resource>, StorageError>

Source§

fn get_span(&self, at: Timestamp) -> Result<Arc<Span>, StorageError>

Source§

fn get_span_event(&self, at: Timestamp) -> Result<Arc<SpanEvent>, StorageError>

Source§

fn get_event(&self, at: Timestamp) -> Result<Arc<Event>, StorageError>

Source§

fn get_all_resources( &self, ) -> Result<Box<dyn Iterator<Item = Result<Arc<Resource>, StorageError>> + '_>, StorageError>

Source§

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

Source§

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

Source§

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

Source§

fn insert_resource(&mut self, resource: Resource) -> Result<(), StorageError>

Source§

fn insert_span(&mut self, span: Span) -> Result<(), StorageError>

Source§

fn insert_span_event( &mut self, span_event: SpanEvent, ) -> Result<(), StorageError>

Source§

fn insert_event(&mut self, event: Event) -> Result<(), StorageError>

Source§

fn update_span_closed( &mut self, at: Timestamp, closed_at: Timestamp, busy: Option<u64>, ) -> Result<(), StorageError>

Source§

fn update_span_attributes( &mut self, at: Timestamp, attributes: BTreeMap<String, Value>, ) -> Result<(), StorageError>

Source§

fn update_span_parents( &mut self, parent_key: SpanKey, spans: &[SpanKey], ) -> Result<(), StorageError>

Source§

fn update_event_parents( &mut self, parent_key: SpanKey, events: &[EventKey], ) -> Result<(), StorageError>

Source§

fn drop_resources( &mut self, resources: &[Timestamp], ) -> Result<(), StorageError>

Source§

fn drop_spans(&mut self, spans: &[Timestamp]) -> Result<(), StorageError>

Source§

fn drop_span_events( &mut self, span_events: &[Timestamp], ) -> Result<(), StorageError>

Source§

fn drop_events(&mut self, events: &[Timestamp]) -> Result<(), StorageError>

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more