Struct ntex_io::WriteContext
source · [−]pub struct WriteContext(_);Expand description
Context for io write task
Implementations
sourceimpl WriteContext
impl WriteContext
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<WriteStatus>
pub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<WriteStatus>
Check readiness for write operations
sourcepub fn get_write_buf(&self) -> Option<BytesVec>
pub fn get_write_buf(&self) -> Option<BytesVec>
Get write buffer
Auto Trait Implementations
impl !RefUnwindSafe for WriteContext
impl !Send for WriteContext
impl !Sync for WriteContext
impl Unpin for WriteContext
impl !UnwindSafe for WriteContext
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