Skip to main content

CatalogStoreService

Struct CatalogStoreService 

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

Trait service backed by a Store. Read-only RPCs only.

Implementations§

Source§

impl CatalogStoreService

Source

pub fn new(store: Store) -> Self

Source

pub fn from_path(path: &Path) -> Result<Self, TimeSeriesError>

Source

pub fn into_server(self) -> CatalogStoreServer<Self>

Trait Implementations§

Source§

impl CatalogStore for CatalogStoreService

Source§

fn list_time_series<'life0, 'async_trait>( &'life0 self, request: Request<ListReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_time_series<'life0, 'async_trait>( &'life0 self, request: Request<GetReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_time_series_keys<'life0, 'async_trait>( &'life0 self, request: Request<KeysReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<KeysResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_resolutions<'life0, 'async_trait>( &'life0 self, request: Request<ResolutionsReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResolutionsResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_counts<'life0, 'async_trait>( &'life0 self, _request: Request<CountsReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<CountsResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_forecast_parameters<'life0, 'async_trait>( &'life0 self, request: Request<ForecastParamsReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ForecastParamsResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn has_time_series<'life0, 'async_trait>( &'life0 self, request: Request<HasReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<HasResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn verify_integrity<'life0, 'async_trait>( &'life0 self, _request: Request<VerifyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<VerifyResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_keys<'life0, 'async_trait>( &'life0 self, request: Request<ListKeysReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListKeysResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Additive read surface (Phase 4.4).
Source§

fn get_metadata<'life0, 'async_trait>( &'life0 self, request: Request<KeyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<TimeSeriesMetadata>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn bulk_read<'life0, 'async_trait>( &'life0 self, request: Request<BulkReadReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<BulkReadResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_detailed_counts<'life0, 'async_trait>( &'life0 self, _request: Request<EmptyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<DetailedCountsResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_counts_by_type<'life0, 'async_trait>( &'life0 self, _request: Request<EmptyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<CountsByTypeResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_owner_ids<'life0, 'async_trait>( &'life0 self, request: Request<ListOwnerIdsReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListOwnerIdsResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_intervals<'life0, 'async_trait>( &'life0 self, request: Request<IntervalsReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<IntervalsResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_static_summary<'life0, 'async_trait>( &'life0 self, _request: Request<EmptyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<StaticSummaryResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_forecast_summary<'life0, 'async_trait>( &'life0 self, _request: Request<EmptyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ForecastSummaryResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn check_static_consistency<'life0, 'async_trait>( &'life0 self, request: Request<ConsistencyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConsistencyResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn resolve_forecast_key<'life0, 'async_trait>( &'life0 self, request: Request<ResolveForecastKeyReq>, ) -> Pin<Box<dyn Future<Output = Result<Response<ResolveForecastKeyResp>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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