pub fn new() -> Result<Manager> {
        let fd = handle_error(unsafe { libc::socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) })?;
        Ok(Manager {
            ctl_fd: Mutex::new(fd),
        })
    }
/// Constructs a new manager to communicate with the BlueZ system. Only one Manager should be
/// created by your application.
Constructs a new manager to communicate with the BlueZ system. Only one Manager should be
created by your application.
Constructs a new manager to communicate with the BlueZ system . Only one Manager should be created by your application .
pub fn new() -> Result<Manager> {
        let fd = handle_error(unsafe { libc::socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) })?;
        Ok(Manager {
            ctl_fd: Mutex::new(fd),
        })
    }
pub fn new ( ) -> Result < Manager > { let fd = handle_error ( unsafe { libc :: socket ( AF_BLUETOOTH , SOCK_RAW , BTPROTO_HCI ) } ) ? ; Ok ( Manager { ctl_fd : Mutex :: new ( fd ) , } ) }
Constructs a new manager to communicate with the BlueZ system.
Constructs a new manager to communicate with the BlueZ system .