pub struct DataInjection;Expand description
Implements the DataInjectionTrait for concrete data logging to an SQL database.
This struct serves as the practical component for transferring RecorderDataFrame
instances to the configured SQL database.
Trait Implementations§
Source§impl DataInjectionTrait for DataInjection
impl DataInjectionTrait for DataInjection
Source§fn inject_data(
&mut self,
data_frame: RecorderDataFrame,
sql_interface_data: &mut SqlInterfaceData,
)
fn inject_data( &mut self, data_frame: RecorderDataFrame, sql_interface_data: &mut SqlInterfaceData, )
Transfers a RecorderDataFrame to the SQL database for logging.
This method serves as the concrete implementation for injecting collected
data frames into the database. It attempts to write the provided data_frame
using the sql_interface_data and logs any errors that occur during the process.
§Arguments
data_frame- TheRecorderDataFramecontaining the data to be persisted in the SQL database. This is passed by value, meaning ownership is transferred to this function.sql_interface_data- A mutable reference to theSqlInterfaceDatainstance, which handles the actual database write operation.
Auto Trait Implementations§
impl Freeze for DataInjection
impl RefUnwindSafe for DataInjection
impl Send for DataInjection
impl Sync for DataInjection
impl Unpin for DataInjection
impl UnwindSafe for DataInjection
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