pub struct Services {
pub catalog: Catalog,
pub clock: Clock,
pub compiler: Compiler,
pub functions: Functions,
pub procedures: Procedures,
pub transforms: Transforms,
pub flow_operator_store: FlowOperatorStore,
pub virtual_table_registry: UserVTableRegistry,
pub stats_reader: MetricReader<SingleStore>,
pub ioc: IocContainer,
pub auth_registry: AuthenticationRegistry,
}Expand description
Services is a container for shared resources used throughout the execution engine.
This struct provides a single location for all the shared resources that the VM, query operators, and other components need access to.
Fields§
§catalog: Catalog§clock: Clock§compiler: Compiler§functions: Functions§procedures: Procedures§transforms: Transforms§flow_operator_store: FlowOperatorStore§virtual_table_registry: UserVTableRegistry§stats_reader: MetricReader<SingleStore>§ioc: IocContainer§auth_registry: AuthenticationRegistryImplementations§
Source§impl Services
impl Services
pub fn new( catalog: Catalog, clock: Clock, functions: Functions, procedures: Procedures, transforms: Transforms, flow_operator_store: FlowOperatorStore, stats_reader: MetricReader<SingleStore>, ioc: IocContainer, ) -> Self
pub fn get_handlers( &self, sumtype_id: SumTypeId, variant_tag: u8, ) -> Vec<Box<dyn Procedure>>
pub fn get_procedure(&self, name: &str) -> Option<Box<dyn Procedure>>
pub fn testing() -> Arc<Self>
Auto Trait Implementations§
impl Freeze for Services
impl !RefUnwindSafe for Services
impl Send for Services
impl Sync for Services
impl Unpin for Services
impl UnsafeUnpin for Services
impl !UnwindSafe for Services
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more