pub struct Layer<F, L = Base>(/* private fields */);
Trait Implementations§
source§impl<F, L> Filter for Layer<F, L>where
F: FilterLayer,
L: Filter,
impl<F, L> Filter for Layer<F, L>where
F: FilterLayer,
L: Filter,
fn query(&self, id: TypeId) -> Option<Box<dyn Any>>
source§fn shutdown(&self, io: &IoRef, stack: &Stack, idx: usize) -> Result<Poll<()>>
fn shutdown(&self, io: &IoRef, stack: &Stack, idx: usize) -> Result<Poll<()>>
Gracefully shutdown filter
fn process_read_buf( &self, io: &IoRef, stack: &Stack, idx: usize, nbytes: usize, ) -> Result<FilterReadStatus>
source§fn process_write_buf(&self, io: &IoRef, stack: &Stack, idx: usize) -> Result<()>
fn process_write_buf(&self, io: &IoRef, stack: &Stack, idx: usize) -> Result<()>
Process write buffer
source§fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll<ReadStatus>
fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll<ReadStatus>
Check readiness for read operations
source§fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll<WriteStatus>
fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll<WriteStatus>
Check readiness for write operations
Auto Trait Implementations§
impl<F, L> Freeze for Layer<F, L>
impl<F, L> RefUnwindSafe for Layer<F, L>where
F: RefUnwindSafe,
L: RefUnwindSafe,
impl<F, L> Send for Layer<F, L>
impl<F, L> Sync for Layer<F, L>
impl<F, L> Unpin for Layer<F, L>
impl<F, L> UnwindSafe for Layer<F, L>where
F: UnwindSafe,
L: 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