pub struct TlsFactory<H: TlsHandler> { /* private fields */ }Available on crate feature
tls only.Expand description
ReassemblerFactory that produces a TlsReassembler per
(flow, side). Wraps a user-supplied TlsHandler and shares
it across all per-flow reassembler instances.
Implementations§
Source§impl<H: TlsHandler> TlsFactory<H>
impl<H: TlsHandler> TlsFactory<H>
Sourcepub fn with_handler(handler: H) -> Self
pub fn with_handler(handler: H) -> Self
Construct with default TlsConfig.
Sourcepub fn with_config(handler: H, config: TlsConfig) -> Self
pub fn with_config(handler: H, config: TlsConfig) -> Self
Construct with explicit config.
Trait Implementations§
Source§impl<K, H> ReassemblerFactory<K> for TlsFactory<H>where
K: Send + 'static,
H: TlsHandler,
impl<K, H> ReassemblerFactory<K> for TlsFactory<H>where
K: Send + 'static,
H: TlsHandler,
Source§type Reassembler = TlsReassembler<H>
type Reassembler = TlsReassembler<H>
Available on crate feature
reassembler only.Source§fn new_reassembler(&mut self, _key: &K, side: FlowSide) -> TlsReassembler<H>
fn new_reassembler(&mut self, _key: &K, side: FlowSide) -> TlsReassembler<H>
Available on crate feature
reassembler only.Auto Trait Implementations§
impl<H> Freeze for TlsFactory<H>
impl<H> RefUnwindSafe for TlsFactory<H>where
H: RefUnwindSafe,
impl<H> Send for TlsFactory<H>
impl<H> Sync for TlsFactory<H>
impl<H> Unpin for TlsFactory<H>
impl<H> UnsafeUnpin for TlsFactory<H>
impl<H> UnwindSafe for TlsFactory<H>where
H: RefUnwindSafe,
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