Struct async_tftp::server::handlers::DirHandler
source · pub struct DirHandler { /* private fields */ }
Expand description
Handler that serves read requests for a directory.
Implementations§
source§impl DirHandler
impl DirHandler
Trait Implementations§
source§impl Handler for DirHandler
impl Handler for DirHandler
type Reader = Unblock<File>
type Writer = Unblock<File>
source§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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Open
Reader
to serve a read request.source§fn write_req_open<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_client: &'life1 SocketAddr,
path: &'life2 Path,
size: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<Self::Writer, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write_req_open<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_client: &'life1 SocketAddr,
path: &'life2 Path,
size: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<Self::Writer, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Open
Writer
to serve a write request.