venator_engine

Struct Engine

Source
pub struct Engine { /* private fields */ }

Implementations§

Source§

impl Engine

Source

pub fn new<S: Storage + Send + 'static>(storage: S) -> Engine

Source

pub fn query_connection( &self, query: Query, ) -> impl Future<Output = Vec<ConnectionView>>

Source

pub fn query_connection_count( &self, query: Query, ) -> impl Future<Output = usize>

Source

pub fn query_span(&self, query: Query) -> impl Future<Output = Vec<SpanView>>

Source

pub fn query_span_count(&self, query: Query) -> impl Future<Output = usize>

Source

pub fn query_span_event( &self, query: Query, ) -> impl Future<Output = Vec<SpanEvent>>

Source

pub fn query_event(&self, query: Query) -> impl Future<Output = Vec<EventView>>

Source

pub fn query_event_count(&self, query: Query) -> impl Future<Output = usize>

Source

pub fn query_stats(&self) -> impl Future<Output = StatsView>

Source

pub fn insert_connection( &self, connection: NewConnection, ) -> impl Future<Output = Result<ConnectionKey, EngineInsertError>>

Source

pub fn disconnect_connection( &self, id: ConnectionId, ) -> impl Future<Output = Result<(), EngineInsertError>>

Source

pub fn insert_span_event( &self, span_event: NewSpanEvent, ) -> impl Future<Output = Result<SpanKey, EngineInsertError>>

Source

pub fn insert_event( &self, event: NewEvent, ) -> impl Future<Output = Result<(), EngineInsertError>>

Source

pub fn delete( &self, filter: DeleteFilter, ) -> impl Future<Output = DeleteMetrics>

Source

pub fn add_attribute_index(&self, name: String)

Source

pub fn remove_attribute_index(&self, name: String)

Source

pub fn subscribe_to_events( &self, filter: Vec<FilterPredicate>, ) -> impl Future<Output = (SubscriptionId, UnboundedReceiver<EventView>)>

Source

pub fn unsubscribe_from_events( &self, id: SubscriptionId, ) -> impl Future<Output = ()>

Source

pub fn copy_dataset( &self, to: Box<dyn Storage + Send>, ) -> impl Future<Output = ()>

Source

pub fn get_status(&self) -> impl Future<Output = EngineStatusView>

Trait Implementations§

Source§

impl Clone for Engine

Source§

fn clone(&self) -> Engine

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Freeze for Engine

§

impl RefUnwindSafe for Engine

§

impl Send for Engine

§

impl Sync for Engine

§

impl Unpin for Engine

§

impl UnwindSafe for Engine

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.