Expand description
Advanced Binder APIs needed internally by AIDL or when manually using Binder without AIDL.
Structs§
- Binder
- Rust wrapper around Binder remotable objects.
- Borrowed
Parcel - Container for a message (data and object references) that can be sent through Binder.
- Interface
Class - Opaque reference to the type of a Binder interface.
- Parcel
- Container for a message (data and object references) that can be sent through Binder.
Enums§
- Local
Stability Type Stability::Local
.- Stability
- Interface stability promise
- Vintf
Stability Type Stability::Vintf
.
Constants§
- FIRST_
CALL_ TRANSACTION - First transaction code available for user commands (inclusive)
- FLAG_
CLEAR_ BUF - Corresponds to TF_CLEAR_BUF – clear transaction buffers after call is made.
- FLAG_
ONEWAY - Corresponds to TF_ONE_WAY – an asynchronous call.
- FLAG_
PRIVATE_ LOCAL - Set to the vendor flag if we are building for the VNDK, 0 otherwise
- LAST_
CALL_ TRANSACTION - Last transaction code available for user commands (inclusive)
- NON_
NULL_ PARCELABLE_ FLAG - Flag that specifies that the following parcelable is present.
- NULL_
PARCELABLE_ FLAG - Flag that specifies that the following parcelable is absent.
Traits§
- Associate
Class - An object that can be associate with an
InterfaceClass
. - Binder
Async Runtime - A runtime for executing an async binder server.
- Deserialize
- A struct whose instances can be restored from a
crate::parcel::Parcel
. - Deserialize
Array - Helper trait for types that can be deserialized as arrays.
Defaults to calling Deserialize::deserialize() manually for every element,
but can be overridden for custom implementations like
readByteArray
. - Deserialize
Option - Helper trait for types that can be nullable when deserialized.
- IBinder
Internal - Internal interface of binder local or remote objects for making transactions.
- Parcelable
Metadata - Metadata that
ParcelableHolder
needs for all parcelables. - Proxy
- Generic interface to remote binder objects.
- Remotable
- A local service that can be remotable via Binder.
- Serialize
- A struct whose instances can be written to a
crate::parcel::Parcel
. - Serialize
Array - Helper trait for types that can be serialized as arrays.
Defaults to calling Serialize::serialize() manually for every element,
but can be overridden for custom implementations like
writeByteArray
. - Serialize
Option - Helper trait for types that can be nullable when serialized.
- Stability
Type - Same as
Stability
, but in the form of a trait. Used when the stability should be encoded in the type. - ToAsync
Interface - Implemented by sync interfaces to specify what the associated async interface is. Generic to handle the fact that async interfaces are generic over a thread pool.
- ToSync
Interface - Implemented by async interfaces to specify what the associated sync interface is.
- Unstructured
Parcelable - Super-trait for unstructured Binder parcelables, i.e. those implemented manually.
Type Aliases§
- Transaction
Code - Binder action to perform.
- Transaction
Flags - Additional operation flags.
- status_
t - One of the STATUS_* values.