pub struct HTTPHandlerOnce { /* private fields */ }Implementations§
Source§impl HTTPHandlerOnce
impl HTTPHandlerOnce
pub async fn process_transformed( &self, a: &[u8], transform: &mut (dyn FnMut(&[u8], Encryption) -> Cow<'_, [u8]> + '_), max_resp: u32, ) -> Vec<u8> ⓘ
pub async fn process(&self, a: &[u8], max_resp: u32) -> Vec<u8> ⓘ
pub async fn send_frame(&self, x: WsFrame)
pub async fn recv_frame(&self) -> WsFrame
Trait Implementations§
Source§impl Clone for HTTPHandlerOnce
impl Clone for HTTPHandlerOnce
Source§fn clone(&self) -> HTTPHandlerOnce
fn clone(&self) -> HTTPHandlerOnce
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for HTTPHandlerOnce
impl Default for HTTPHandlerOnce
Source§fn default() -> HTTPHandlerOnce
fn default() -> HTTPHandlerOnce
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HTTPHandlerOnce
impl !UnwindSafe for HTTPHandlerOnce
impl Freeze for HTTPHandlerOnce
impl Send for HTTPHandlerOnce
impl Sync for HTTPHandlerOnce
impl Unpin for HTTPHandlerOnce
impl UnsafeUnpin for HTTPHandlerOnce
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more