Struct hyperscan::stream::StreamSink
source · pub struct StreamSink {
pub live: LiveStream,
pub matcher: StreamMatcher,
}Fields§
§live: LiveStream§matcher: StreamMatcherImplementations§
source§impl StreamSink
impl StreamSink
pub fn new<S: StreamHandler + 'static>(live: LiveStream) -> Self
pub fn scan<'data>( &mut self, data: ByteSlice<'data>, scratch: &mut Scratch ) -> Result<(), HyperscanRuntimeError>
pub fn flush_eod( &mut self, scratch: &mut Scratch ) -> Result<(), HyperscanRuntimeError>
pub fn try_reset(&mut self) -> Result<(), HyperscanRuntimeError>
pub fn try_clone(&self) -> Result<Self, HyperscanRuntimeError>
pub fn try_clone_from( &mut self, other: &Self ) -> Result<(), HyperscanRuntimeError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamSink
impl !Send for StreamSink
impl !Sync for StreamSink
impl Unpin for StreamSink
impl !UnwindSafe for StreamSink
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