pub struct Binder { /* private fields */ }
Implementations
sourceimpl Binder
impl Binder
pub fn new(
handle: BinderHandle,
hos_binder_driver: Shared<dyn IHOSBinderDriver>
) -> Result<Self>
pub fn get_handle(&self) -> i32
pub fn get_hos_binder_driver(&mut self) -> Shared<dyn IHOSBinderDriver>
pub fn increase_refcounts(&mut self) -> Result<()>
pub fn decrease_refcounts(&mut self) -> Result<()>
pub fn connect(
&mut self,
api: ConnectionApi,
producer_controlled_by_app: bool
) -> Result<QueueBufferOutput>
pub fn disconnect(
&mut self,
api: ConnectionApi,
mode: DisconnectMode
) -> Result<()>
pub fn set_preallocated_buffer(
&mut self,
slot: i32,
buf: GraphicBuffer
) -> Result<()>
pub fn request_buffer(&mut self, slot: i32) -> Result<(bool, GraphicBuffer)>
pub fn dequeue_buffer(
&mut self,
is_async: bool,
width: u32,
height: u32,
get_frame_timestamps: bool,
usage: GraphicsAllocatorUsage
) -> Result<(i32, bool, MultiFence)>
pub fn queue_buffer(
&mut self,
slot: i32,
qbi: QueueBufferInput
) -> Result<QueueBufferOutput>
pub fn get_native_handle(
&mut self,
handle_type: NativeHandleType
) -> Result<CopyHandle>
Auto Trait Implementations
impl !RefUnwindSafe for Binder
impl !Send for Binder
impl !Sync for Binder
impl Unpin for Binder
impl !UnwindSafe for Binder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more