pub struct SendFile<F, S> { /* private fields */ }
Expand description
Wrapper around the sendfile
system call.
From the sendfile
manual ($ man sendfile 2
):
sendfile
copies data between one file descriptor and another. Because this copying is done within the kernel,sendfile
is more efficient than the combination of read and write, which would require transferring data to and from user space.
§Platform support
§Notes
The Future
implementation doesn’t implement waking, it is up to the
caller to ensure future is polled again once the socket is ready to receive
more data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F, S> Freeze for SendFile<F, S>
impl<F, S> RefUnwindSafe for SendFile<F, S>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S> Send for SendFile<F, S>
impl<F, S> Sync for SendFile<F, S>
impl<F, S> Unpin for SendFile<F, S>
impl<F, S> UnwindSafe for SendFile<F, S>where
F: UnwindSafe,
S: UnwindSafe,
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more