[][src]Trait async_tftp::server::Handler

pub trait Handler: Send {
    type Reader: AsyncRead + Unpin + Send + 'static;
    fn read_req_open<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        client: &'life1 SocketAddr,
        path: &'life2 Path
    ) -> Pin<Box<dyn Future<Output = Result<(Self::Reader, Option<u64>), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Trait for implementing advance handlers.

Associated Types

type Reader: AsyncRead + Unpin + Send + 'static

Loading content...

Required methods

fn read_req_open<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    client: &'life1 SocketAddr,
    path: &'life2 Path
) -> Pin<Box<dyn Future<Output = Result<(Self::Reader, Option<u64>), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Open Reader to serve a read request.

Loading content...

Implementors

impl Handler for DirRoHandler[src]

type Reader = File

Loading content...