Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a16503e4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Derive Debug for binder::Accessor" into main am: b53ef230

parents ccaeaf76 b53ef230
Loading
Loading
Loading
Loading
+2 −7
Original line number Original line Diff line number Diff line
@@ -24,21 +24,16 @@ use std::os::raw::c_char;


use libc::{sockaddr, sockaddr_un, sockaddr_vm, socklen_t};
use libc::{sockaddr, sockaddr_un, sockaddr_vm, socklen_t};
use std::sync::Arc;
use std::sync::Arc;
use std::{fmt, mem, ptr};
use std::{mem, ptr};


/// Rust wrapper around ABinderRpc_Accessor objects for RPC binder service management.
/// Rust wrapper around ABinderRpc_Accessor objects for RPC binder service management.
///
///
/// Dropping the `Accessor` will drop the underlying object and the binder it owns.
/// Dropping the `Accessor` will drop the underlying object and the binder it owns.
#[derive(Debug)]
pub struct Accessor {
pub struct Accessor {
    accessor: *mut sys::ABinderRpc_Accessor,
    accessor: *mut sys::ABinderRpc_Accessor,
}
}


impl fmt::Debug for Accessor {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "ABinderRpc_Accessor({:p})", self.accessor)
    }
}

/// Socket connection info required for libbinder to connect to a service.
/// Socket connection info required for libbinder to connect to a service.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ConnectionInfo {
pub enum ConnectionInfo {