[−][src]Trait polyfuse::Buffer
Buffer that stores FUSE requests.
Associated Types
type Data
The remaining part of request data.
Required methods
fn header(&self) -> Option<&RequestHeader>
Return a reference to the header part of received request.
fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context,
bufsize: usize
) -> Poll<Result<()>>
self: Pin<&mut Self>,
cx: &mut Context,
bufsize: usize
) -> Poll<Result<()>>
Prepare the buffer to receive the specified amount of data.
fn poll_receive<R: ?Sized>(
self: Pin<&mut Self>,
cx: &mut Context,
reader: Pin<&mut R>
) -> Poll<Result<()>> where
R: AsyncRead,
self: Pin<&mut Self>,
cx: &mut Context,
reader: Pin<&mut R>
) -> Poll<Result<()>> where
R: AsyncRead,
Transfer one request queued in the kernel driver into this buffer.
fn extract(&mut self) -> Result<Request<Self::Data>>
Extract the content of request from the buffer.
Implementors
impl Buffer for BytesBuffer
[src]
type Data = Bytes
fn header(&self) -> Option<&RequestHeader>
[src]
fn poll_ready(
self: Pin<&mut Self>,
_: &mut Context,
bufsize: usize
) -> Poll<Result<()>>
[src]
self: Pin<&mut Self>,
_: &mut Context,
bufsize: usize
) -> Poll<Result<()>>
fn poll_receive<R: ?Sized>(
self: Pin<&mut Self>,
cx: &mut Context,
reader: Pin<&mut R>
) -> Poll<Result<()>> where
R: AsyncRead,
[src]
self: Pin<&mut Self>,
cx: &mut Context,
reader: Pin<&mut R>
) -> Poll<Result<()>> where
R: AsyncRead,