Struct gaia_tmtc::broker::BrokerService
source · pub struct BrokerService<C> { /* private fields */ }
Implementations§
source§impl<C> BrokerService<C>
impl<C> BrokerService<C>
pub fn new( cmd_service: C, tlm_bus: Bus, last_tmiv_store: Arc<LastTmivStore> ) -> Self
Trait Implementations§
source§impl<C> Broker for BrokerService<C>
impl<C> Broker for BrokerService<C>
§type OpenCommandStreamStream = Pin<Box<dyn Stream<Item = Result<CommandStreamResponse, Status>> + Send>>
type OpenCommandStreamStream = Pin<Box<dyn Stream<Item = Result<CommandStreamResponse, Status>> + Send>>
Server streaming response type for the OpenCommandStream method.
§type OpenTelemetryStreamStream = Pin<Box<dyn Stream<Item = Result<TelemetryStreamResponse, Status>> + Send>>
type OpenTelemetryStreamStream = Pin<Box<dyn Stream<Item = Result<TelemetryStreamResponse, Status>> + Send>>
Server streaming response type for the OpenTelemetryStream method.
fn post_command<'life0, 'async_trait>(
&'life0 self,
request: Request<PostCommandRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<PostCommandResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_telemetry_stream<'life0, 'async_trait>(
&'life0 self,
_request: Request<TelemetryStreamRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::OpenTelemetryStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_command_stream<'life0, 'async_trait>(
&'life0 self,
_request: Request<Streaming<CommandStreamRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::OpenCommandStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post_telemetry<'life0, 'async_trait>(
&'life0 self,
_request: Request<PostTelemetryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<PostTelemetryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_last_received_telemetry<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLastReceivedTelemetryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLastReceivedTelemetryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<C> !Freeze for BrokerService<C>
impl<C> !RefUnwindSafe for BrokerService<C>
impl<C> Send for BrokerService<C>where
C: Send,
impl<C> Sync for BrokerService<C>where
C: Send,
impl<C> Unpin for BrokerService<C>where
C: Unpin,
impl<C> !UnwindSafe for BrokerService<C>
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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