pub enum BinderRequest {
SetVmo {
vmo: Vmo,
mapped_address: u64,
control_handle: BinderControlHandle,
},
Ioctl {
tid: u64,
request: u32,
parameter: u64,
responder: BinderIoctlResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: BinderControlHandle,
method_type: MethodType,
},
}
Expand description
An opened connection to a binder driver.
Variants§
SetVmo
Set the VMO to used as a share resource between the driver and the
client. mapped_address
is the address where the vmo is mapped in the
client address space.
Ioctl
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: BinderControlHandle
§
method_type: MethodType
Implementations§
Source§impl BinderRequest
impl BinderRequest
pub fn into_set_vmo(self) -> Option<(Vmo, u64, BinderControlHandle)>
pub fn into_ioctl(self) -> Option<(u64, u32, u64, BinderIoctlResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinderRequest
impl !RefUnwindSafe for BinderRequest
impl Send for BinderRequest
impl Sync for BinderRequest
impl Unpin for BinderRequest
impl !UnwindSafe for BinderRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more