Struct Layer

Source
pub struct Layer<F, L = Base>(/* private fields */);

Trait Implementations§

Source§

impl<F: Debug, L: Debug> Debug for Layer<F, L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F, L> Filter for Layer<F, L>
where F: FilterLayer, L: Filter,

Source§

fn query(&self, id: TypeId) -> Option<Box<dyn Any>>

Source§

fn shutdown(&self, ctx: FilterCtx<'_>) -> Result<Poll<()>>

Gracefully shutdown filter
Source§

fn process_read_buf( &self, ctx: FilterCtx<'_>, nbytes: usize, ) -> Result<FilterReadStatus>

Source§

fn process_write_buf(&self, ctx: FilterCtx<'_>) -> Result<()>

Process write buffer
Source§

fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll<Readiness>

Check readiness for read operations
Source§

fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll<Readiness>

Check readiness for write operations

Auto Trait Implementations§

§

impl<F, L> Freeze for Layer<F, L>
where F: Freeze, L: Freeze,

§

impl<F, L> RefUnwindSafe for Layer<F, L>

§

impl<F, L> Send for Layer<F, L>
where F: Send, L: Send,

§

impl<F, L> Sync for Layer<F, L>
where F: Sync, L: Sync,

§

impl<F, L> Unpin for Layer<F, L>
where F: Unpin, L: Unpin,

§

impl<F, L> UnwindSafe for Layer<F, L>
where F: UnwindSafe, L: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.