pub struct FfiApp { /* private fields */ }Implementations§
Source§impl FfiApp
impl FfiApp
pub fn new( data_dir: String, _keychain_group: String, _app_version: String, ) -> Arc<Self> ⓘ
pub fn state(&self) -> AppState
pub fn dispatch(&self, action: AppAction)
pub fn ingest_nearby_event_json(&self, event_json: String) -> bool
pub fn build_nearby_presence_event_json( &self, peer_id: String, my_nonce: String, their_nonce: String, profile_event_id: String, ) -> String
pub fn verify_nearby_presence_event_json( &self, event_json: String, peer_id: String, my_nonce: String, their_nonce: String, ) -> String
pub fn nearby_encode_frame(&self, envelope_json: String) -> Vec<u8> ⓘ
pub fn nearby_decode_frame(&self, frame: Vec<u8>) -> String
pub fn nearby_frame_body_len_from_header(&self, header: Vec<u8>) -> i32
pub fn export_support_bundle_json(&self) -> String
pub fn shutdown(&self)
pub fn listen_for_updates(&self, reconciler: Box<dyn AppReconciler>)
Trait Implementations§
Source§impl<UT> LowerError<UT> for FfiApp
impl<UT> LowerError<UT> for FfiApp
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 FfiApp
impl<UT> LowerReturn<UT> for FfiApp
Source§type ReturnType = <Arc<FfiApp> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<FfiApp> 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
Auto Trait Implementations§
impl !Freeze for FfiApp
impl RefUnwindSafe for FfiApp
impl Send for FfiApp
impl Sync for FfiApp
impl Unpin for FfiApp
impl UnsafeUnpin for FfiApp
impl UnwindSafe for FfiApp
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
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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