Expand description
Re-exports§
pub use binder_async::BinderAsyncPool;pub use binder_async::BinderAsyncRuntime;pub use binder_async::BoxFuture;pub use error::Result;pub use error::StatusCode;pub use file_descriptor::ParcelFileDescriptor;pub use parcel::Parcel;pub use parcelable_holder::ParcelableHolder;pub use status::ExceptionCode;pub use status::Status;pub use native::*;pub use parcelable::*;pub use proxy::*;
Modules§
- binder_
async - binderfs
- error
- file_
descriptor - hub
- native
- parcel
- parcelable
- parcelable_
holder - proxy
- status
- thread_
state
Macros§
- __
declare_ binder_ interface - declare_
binder_ enum - Declare an AIDL enumeration.
- declare_
binder_ interface - Declare a binder interface.
- impl_
deserialize_ for_ parcelable - Implement
Deserializetrait and friends for a parcelable - impl_
serialize_ for_ parcelable - Implement
Serializetrait and friends for a parcelable
Structs§
- Process
State - SIBinder
- Strong reference to a binder object.
- Strong
- Strong reference to a binder object
- Tokio
Runtime - Wrapper around Tokio runtime types for providing a runtime to a binder server.
- WIBinder
- Weak reference to a binder object.
- Weak
- Weak reference to a binder object
Enums§
Constants§
- DEBUG_
PID_ TRANSACTION - DEFAULT_
BINDERFS_ PATH - DEFAULT_
BINDER_ CONTROL_ PATH - DEFAULT_
BINDER_ PATH - DUMP_
TRANSACTION - EXTENSION_
TRANSACTION - FIRST_
CALL_ TRANSACTION - 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
- FLAG_
PRIVATE_ VENDOR - INTERFACE_
HEADER - INTERFACE_
TRANSACTION - LAST_
CALL_ TRANSACTION - LIKE_
TRANSACTION - PING_
TRANSACTION - SET_
RPC_ CLIENT_ TRANSACTION - SHELL_
COMMAND_ TRANSACTION - START_
RECORDING_ TRANSACTION - STOP_
RECORDING_ TRANSACTION - SYSPROPS_
TRANSACTION - TWEET_
TRANSACTION
Traits§
- Death
Recipient - Interface for receiving a notification when a binder object is no longer valid.
- FromI
Binder - Trait for converting a generic Binder object into a specific Binder
- IBinder
- Interface of binder local or remote objects.
- Interface
- Super-trait for Binder interfaces.
- Remotable
- A local service that can be remotable via Binder.
- 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.
- Transactable
- A transactable object that can be used to process Binder commands.
Functions§
- get_
interface - Retrieve an existing service for a particular interface, sleeping for a few seconds if it doesn’t yet exist.
Type Aliases§
- Transaction
Code - Binder action to perform.
- Transaction
Flags - Additional operation flags.