Trait HasTicketManagement
pub trait HasTicketManagement {
type TicketManager: TicketManagement + Clone + Send + Sync + 'static;
// Required methods
fn ticket_management(&self) -> &Self::TicketManager;
fn subscribe_ticket_events(
&self,
) -> impl Stream<Item = TicketEvent> + Send + 'static;
fn status(&self) -> ComponentStatus;
}Expand description
Provides access to the ticket management component.
Only available on relay nodes that process tickets.
Required Associated Types§
type TicketManager: TicketManagement + Clone + Send + Sync + 'static
type TicketManager: TicketManagement + Clone + Send + Sync + 'static
The concrete TicketManagement implementation.
Required Methods§
fn ticket_management(&self) -> &Self::TicketManager
fn ticket_management(&self) -> &Self::TicketManager
Returns a reference to the ticket manager.
fn subscribe_ticket_events(
&self,
) -> impl Stream<Item = TicketEvent> + Send + 'static
fn subscribe_ticket_events( &self, ) -> impl Stream<Item = TicketEvent> + Send + 'static
Returns a stream of TicketEvents from the transport layer.
fn status(&self) -> ComponentStatus
fn status(&self) -> ComponentStatus
Reports the current health of the ticket management component.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.