pub struct MobileCounterStore { /* private fields */ }Expand description
Durable adapter used by the iOS umsh_hal::CounterStore boundary.
Each commit writes and synchronizes a temporary record, atomically renames it over the previous boundary, then synchronizes the containing directory. An error at any stage is treated as ambiguous by the caller and therefore cannot release a prepared authenticated frame for transmission.
Implementations§
Source§impl MobileCounterStore
impl MobileCounterStore
pub fn new(root_directory: String) -> Result<Arc<Self>, CounterStoreError>
pub fn load_boundary(&self, context: Vec<u8>) -> Result<u32, CounterStoreError>
pub fn commit_boundary( &self, context: Vec<u8>, boundary: u32, ) -> Result<(), CounterStoreError>
Trait Implementations§
Source§impl CounterStore for MobileCounterStore
impl CounterStore for MobileCounterStore
Source§impl<UT> LiftRef<UT> for MobileCounterStore
impl<UT> LiftRef<UT> for MobileCounterStore
type LiftType = Arc<MobileCounterStore>
Source§impl<UT> LowerError<UT> for MobileCounterStore
impl<UT> LowerError<UT> for MobileCounterStore
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for MobileCounterStore
impl<UT> LowerReturn<UT> for MobileCounterStore
Source§type ReturnType = <Arc<MobileCounterStore> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<MobileCounterStore> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for MobileCounterStore
impl<UT> TypeId<UT> for MobileCounterStore
Auto Trait Implementations§
impl !Freeze for MobileCounterStore
impl RefUnwindSafe for MobileCounterStore
impl Send for MobileCounterStore
impl Sync for MobileCounterStore
impl Unpin for MobileCounterStore
impl UnwindSafe for MobileCounterStore
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