Trait matrix_sdk_crypto_ffi::ProgressListener

source ·
pub trait ProgressListener {
    // Required method
    fn on_progress(&self, progress: i32, total: i32);
}
Expand description

Callback that will be passed over the FFI to report progress

Required Methods§

source

fn on_progress(&self, progress: i32, total: i32)

The callback that should be called on the Rust side

§Arguments
  • progress - The current number of items that have been handled

  • total - The total number of items that will be handled

Trait Implementations§

source§

impl<UT> LiftRef<UT> for Box<dyn ProgressListener>

source§

impl<UT> LiftReturn<UT> for Box<dyn ProgressListener>

§

type ReturnType = <Box<dyn ProgressListener> as Lift<UT>>::FfiType

FFI return type for trait interfaces
source§

fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>

Lift a successfully returned value from a trait interface
source§

const TYPE_ID_META: MetadataBuffer = _

source§

fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus ) -> Self

Lift a foreign returned value from a trait interface Read more
source§

fn lift_error(_buf: RustBuffer) -> Self

Lift a Rust value for a callback interface method error result Read more
source§

fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self

Lift a Rust value for an unexpected callback interface error Read more

Implementors§