Struct summa_server::apis::consumer::ConsumerApiImpl
source · pub struct ConsumerApiImpl { /* private fields */ }Implementations§
source§impl ConsumerApiImpl
impl ConsumerApiImpl
pub fn new(index_service: &Index) -> SummaServerResult<ConsumerApiImpl>
Trait Implementations§
source§impl ConsumerApi for ConsumerApiImpl
impl ConsumerApi for ConsumerApiImpl
source§fn create_consumer<'life0, 'async_trait>(
&'life0 self,
proto_request: Request<CreateConsumerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<CreateConsumerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_consumer<'life0, 'async_trait>(
&'life0 self,
proto_request: Request<CreateConsumerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<CreateConsumerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new consumer
source§fn get_consumer<'life0, 'async_trait>(
&'life0 self,
proto_request: Request<GetConsumerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetConsumerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_consumer<'life0, 'async_trait>(
&'life0 self,
proto_request: Request<GetConsumerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetConsumerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a single consumer
source§fn get_consumers<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<GetConsumersRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetConsumersResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_consumers<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<GetConsumersRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetConsumersResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a list of all consumers
source§fn delete_consumer<'life0, 'async_trait>(
&'life0 self,
proto_request: Request<DeleteConsumerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteConsumerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_consumer<'life0, 'async_trait>(
&'life0 self,
proto_request: Request<DeleteConsumerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteConsumerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a consumer
Auto Trait Implementations§
impl !RefUnwindSafe for ConsumerApiImpl
impl Send for ConsumerApiImpl
impl Sync for ConsumerApiImpl
impl Unpin for ConsumerApiImpl
impl !UnwindSafe for ConsumerApiImpl
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request