pub struct MsgStore { /* private fields */ }Expand description
Message store for BGP search results
MsgStore provides a session-based SQLite database for storing
BGP elements during search operations. Each search session typically
creates its own database file.
Implementations§
Source§impl MsgStore
impl MsgStore
Sourcepub fn new(db_path: Option<&str>, reset: bool) -> Result<Self>
pub fn new(db_path: Option<&str>, reset: bool) -> Result<Self>
Create a new message store
§Arguments
db_path- Optional path to the database file. IfNone, uses in-memory storage.reset- Iftrue, drops existing data before initializing.
Sourcepub fn new_from_option(db_path: &Option<String>, reset: bool) -> Result<Self>
pub fn new_from_option(db_path: &Option<String>, reset: bool) -> Result<Self>
Create a new message store (backward-compatible signature)
This method accepts &Option<String> for compatibility with existing code.
Prefer using new() with Option<&str> for new code.
Sourcepub fn connection(&self) -> &Connection
pub fn connection(&self) -> &Connection
Get access to the underlying database connection for custom queries
Auto Trait Implementations§
impl !Freeze for MsgStore
impl !RefUnwindSafe for MsgStore
impl Send for MsgStore
impl !Sync for MsgStore
impl Unpin for MsgStore
impl !UnwindSafe for MsgStore
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more