[−][src]Struct async_httype::Relay
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]
&'_ mut self,
input: &'_ mut I,
output: &'_ mut O,
req: &'_ HashMap<String, String>
) -> Result<usize, Error> where
I: Write + Read + Unpin,
O: Write + Read + Unpin,
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]
&'_ mut self,
input: &'_ mut I,
output: &'_ mut O
) -> Result<usize, Error> where
I: Write + Read + Unpin,
O: Write + Read + Unpin,
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]
&'_ mut self,
input: &'_ mut I,
output: &'_ mut O,
length: usize
) -> Result<usize, Error> where
I: Read + Unpin,
O: Write + Unpin,
pub fn clear(&mut self)
[src]
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,