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.Auto Trait Implementations§
impl Freeze for DirHandler
impl RefUnwindSafe for DirHandler
impl Send for DirHandler
impl Sync for DirHandler
impl Unpin for DirHandler
impl UnwindSafe for DirHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more