[][src]Struct async_httype::Relay

pub struct Relay { /* fields omitted */ }

Implementations

impl Relay[src]

pub fn new() -> Self[src]

pub fn length(&self) -> usize[src]

pub fn length_limit(&self) -> Option<usize>[src]

pub fn has_length_limit(&self) -> bool[src]

pub fn set_length_limit(&mut self, limit: usize)[src]

pub fn remove_length_limit(&mut self)[src]

pub async fn relay<'_, '_, '_, '_, I, O>(
    &'_ mut self,
    input: &'_ mut I,
    output: &'_ mut O,
    req: &'_ HashMap<String, String>
) -> Result<usize, Error> where
    I: Write + Read + Unpin,
    O: Write + Read + Unpin
[src]

pub async fn relay_chunked<'_, '_, '_, I, O>(
    &'_ mut self,
    input: &'_ mut I,
    output: &'_ mut O
) -> Result<usize, Error> where
    I: Write + Read + Unpin,
    O: Write + Read + Unpin
[src]

pub async fn relay_sized<'_, '_, '_, I, O>(
    &'_ mut self,
    input: &'_ mut I,
    output: &'_ mut O,
    length: usize
) -> Result<usize, Error> where
    I: Read + Unpin,
    O: Write + Unpin
[src]

pub fn clear(&mut self)[src]

Trait Implementations

impl Debug for Relay[src]

Auto Trait Implementations

impl RefUnwindSafe for Relay

impl Send for Relay

impl Sync for Relay

impl Unpin for Relay

impl UnwindSafe for Relay

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.