Struct ntex_io::ReadContext
source · [−]pub struct ReadContext(_);Expand description
Context for io read task
Implementations
sourceimpl ReadContext
impl ReadContext
sourcepub fn memory_pool(&self) -> PoolRef
pub fn memory_pool(&self) -> PoolRef
Return memory pool for this context
sourcepub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<ReadStatus>
pub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<ReadStatus>
Check readiness for read operations
sourcepub fn get_read_buf(&self) -> BytesVec
pub fn get_read_buf(&self) -> BytesVec
Get read buffer
sourcepub fn release_read_buf(&self, buf: BytesVec, nbytes: usize)
pub fn release_read_buf(&self, buf: BytesVec, nbytes: usize)
Release read buffer after io read operations
Auto Trait Implementations
impl !RefUnwindSafe for ReadContext
impl !Send for ReadContext
impl !Sync for ReadContext
impl Unpin for ReadContext
impl !UnwindSafe for ReadContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more