pub trait QrCodeListener: Send {
// Required method
fn on_change(&self, state: QrCodeState);
}
Expand description
Listener that will be passed over the FFI to report changes to a QrCode verification.
Required Methods§
Sourcefn on_change(&self, state: QrCodeState)
fn on_change(&self, state: QrCodeState)
The callback that should be called on the Rust side
§Arguments
state
- The current state of the QrCode verification.
Trait Implementations§
Source§impl<UT> LiftRef<UT> for Box<dyn QrCodeListener>
impl<UT> LiftRef<UT> for Box<dyn QrCodeListener>
type LiftType = Box<dyn QrCodeListener>
Source§impl<UT> LiftReturn<UT> for Box<dyn QrCodeListener>
impl<UT> LiftReturn<UT> for Box<dyn QrCodeListener>
Source§type ReturnType = <Box<dyn QrCodeListener> as Lift<UT>>::FfiType
type ReturnType = <Box<dyn QrCodeListener> as Lift<UT>>::FfiType
FFI return type for trait interfaces
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
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
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
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more