Skip to main content

IngestService

Struct IngestService 

Source
pub struct IngestService<R, L, O>{ /* private fields */ }

Implementations§

Source§

impl<R, L, O> IngestService<R, L, O>

Source

pub fn new( verifier: IngestState, raw_data_store: R, audit_ledger: L, operation_log: O, ) -> Self

Source

pub fn register_device( &mut self, device_id: impl Into<String>, key: VerifyingKey, )

Source

pub fn ingest( &mut self, record: AuditRecord, raw_payload: &[u8], ) -> Result<(), IngestServiceError>

Source

pub fn raw_data_store(&self) -> &R

Source

pub fn audit_ledger(&self) -> &L

Source

pub fn operation_log(&self) -> &O

Auto Trait Implementations§

§

impl<R, L, O> Freeze for IngestService<R, L, O>
where R: Freeze, L: Freeze, O: Freeze,

§

impl<R, L, O> RefUnwindSafe for IngestService<R, L, O>

§

impl<R, L, O> Send for IngestService<R, L, O>
where R: Send, L: Send, O: Send,

§

impl<R, L, O> Sync for IngestService<R, L, O>
where R: Sync, L: Sync, O: Sync,

§

impl<R, L, O> Unpin for IngestService<R, L, O>
where R: Unpin, L: Unpin, O: Unpin,

§

impl<R, L, O> UnsafeUnpin for IngestService<R, L, O>

§

impl<R, L, O> UnwindSafe for IngestService<R, L, O>
where R: UnwindSafe, L: UnwindSafe, O: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.