pub struct Relay { /* private fields */ }
Implementations§
Source§impl Relay
impl Relay
pub fn new() -> Self
pub fn length(&self) -> usize
pub fn length_limit(&self) -> Option<usize>
pub fn has_length_limit(&self) -> bool
pub fn set_length_limit(&mut self, limit: usize)
pub fn remove_length_limit(&mut self)
pub async fn relay<I, O>( &mut self, input: &mut I, output: &mut O, req: &HashMap<String, String>, ) -> Result<usize, Error>
pub async fn relay_chunked<I, O>( &mut self, input: &mut I, output: &mut O, ) -> Result<usize, Error>
pub async fn relay_sized<I, O>( &mut self, input: &mut I, output: &mut O, length: usize, ) -> Result<usize, Error>
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relay
impl RefUnwindSafe for Relay
impl Send for Relay
impl Sync for Relay
impl Unpin for Relay
impl UnwindSafe for Relay
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