pub struct StreamingDatabase { /* private fields */ }
Expand description
A database that supports Vectorscan’s streaming matching APIs
Implementations§
Source§impl StreamingDatabase
impl StreamingDatabase
Sourcepub fn new(patterns: Vec<Pattern>) -> Result<Self, Error>
pub fn new(patterns: Vec<Pattern>) -> Result<Self, Error>
Create a new database with the given patterns
Sourcepub fn create_scanner(&self) -> Result<StreamingScanner<'_>, Error>
pub fn create_scanner(&self) -> Result<StreamingScanner<'_>, Error>
Create a new scanner from this database
Sourcepub fn stream_size(&self) -> Result<usize, Error>
pub fn stream_size(&self) -> Result<usize, Error>
Get the size in bytes of a stream for this database database
Trait Implementations§
Source§impl Clone for StreamingDatabase
impl Clone for StreamingDatabase
Source§fn clone(&self) -> StreamingDatabase
fn clone(&self) -> StreamingDatabase
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamingDatabase
impl RefUnwindSafe for StreamingDatabase
impl Send for StreamingDatabase
impl Sync for StreamingDatabase
impl Unpin for StreamingDatabase
impl UnwindSafe for StreamingDatabase
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