Skip to main content

TicketSource

Trait TicketSource 

Source
pub trait TicketSource: Send + Sync {
    // Required methods
    fn pull(&self) -> Result<Vec<AuthoredTicket>, SourceError>;
    fn report(
        &self,
        ticket_id: &str,
        outcome: &Outcome,
    ) -> Result<(), SourceError>;
}

Required Methods§

Source

fn pull(&self) -> Result<Vec<AuthoredTicket>, SourceError>

Source

fn report(&self, ticket_id: &str, outcome: &Outcome) -> Result<(), SourceError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§