Trait IngestServer

Source
pub trait IngestServer {
    // Required methods
    fn get_stream_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<String, ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn allocate_ingest<'life0, 'life1, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 str,
        handshake: FtlHandshakeFinalised,
        stop_signal: Receiver<()>,
    ) -> Pin<Box<dyn Future<Output = Result<u16, ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn launch<'async_trait>(
        &'static self,
        addr: String,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait { ... }
    fn handler<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        client: &'life1 mut IngestClient,
        writer: &'life2 TcpStream,
        command: FtlCommand,
    ) -> Pin<Box<dyn Future<Output = Result<(), FtlError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}
Available on crate feature server only.

Required Methods§

Source

fn get_stream_key<'life0, 'life1, 'async_trait>( &'life0 self, channel_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<String, ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn allocate_ingest<'life0, 'life1, 'async_trait>( &'life0 self, channel_id: &'life1 str, handshake: FtlHandshakeFinalised, stop_signal: Receiver<()>, ) -> Pin<Box<dyn Future<Output = Result<u16, ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn launch<'async_trait>( &'static self, addr: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,

Source

fn handler<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, client: &'life1 mut IngestClient, writer: &'life2 TcpStream, command: FtlCommand, ) -> Pin<Box<dyn Future<Output = Result<(), FtlError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§