pub struct Detector { /* private fields */ }
Implementations§
Source§impl Detector
impl Detector
pub fn new() -> Self
pub fn detect<P: Peek>( &mut self, p: &mut P, ) -> Result<ClientHelloPayload, DetectError>
pub async fn detect_async<P: AsyncPeek + Unpin>( &mut self, p: &mut P, ) -> Result<ClientHelloPayload, DetectError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Detector
impl RefUnwindSafe for Detector
impl Send for Detector
impl Sync for Detector
impl Unpin for Detector
impl UnwindSafe for Detector
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