pub struct PeekResult {
pub buffer: Bytes,
pub detected: Option<DetectedProtocol>,
pub tls: Option<TlsClientHello>,
}Expand description
Outcome of one peek-buffer classification. buffer is the bytes
that were classified (kept on the result so consumers can replay
them to a downstream decoder via, e.g., peeked-stream).
detected is None when at least one detector wants more bytes;
the caller should read more and call [classify] again.
Fields§
§buffer: Bytes§detected: Option<DetectedProtocol>§tls: Option<TlsClientHello>Trait Implementations§
Source§impl Clone for PeekResult
impl Clone for PeekResult
Source§fn clone(&self) -> PeekResult
fn clone(&self) -> PeekResult
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 moreAuto Trait Implementations§
impl !Freeze for PeekResult
impl RefUnwindSafe for PeekResult
impl Send for PeekResult
impl Sync for PeekResult
impl Unpin for PeekResult
impl UnsafeUnpin for PeekResult
impl UnwindSafe for PeekResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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