abstract class RustObject<T> : Closeable
(source)
Base class that wraps an non-optional Pointer representing a pointer to a Rust object. This class implements Closeable but does not provide an implementation, forcing all subclasses to implement it. This ensures that all classes that inherit from RustObject will have their Pointer destroyed when the Java wrapper is destroyed.
RustObject()
Base class that wraps an non-optional Pointer representing a pointer to a Rust object. This class implements Closeable but does not provide an implementation, forcing all subclasses to implement it. This ensures that all classes that inherit from RustObject will have their Pointer destroyed when the Java wrapper is destroyed. |
val isConsumed: Boolean |
|
open var rawPointer: T? |
open fun close(): Unit |
|
fun consumePointer(): T |
|
abstract fun destroy(p: T): Unit |
|
fun validPointer(): T |
const val RUST_STRING_ENCODING: String |
fun getAndConsumeString(stringPtr: Pointer?): String? |
|
fun <U> safeAsync(callback: (ByReference) -> U): FxaResult<U> |
|
fun <U> safeSync(callback: (ByReference) -> U): U |
class Config : RustObject<RawConfig>
Config represents the server endpoint configurations needed for the authentication flow. |
|
class FirefoxAccount : RustObject<RawFxAccount>
FirefoxAccount represents the authentication state of a client. |