Skip to content

Instantly share code, notes, and snippets.

@zakorgy
Created January 29, 2016 08:36
Show Gist options
  • Save zakorgy/f952c31395b3959ede3d to your computer and use it in GitHub Desktop.
Save zakorgy/f952c31395b3959ede3d to your computer and use it in GitHub Desktop.
pub struct BluetoothGATTRemoteServer {
reflector_: Reflector,
device: JS<BluetoothDevice>,
connected: bool,
}
impl BluetoothGATTRemoteServer {
pub fn new_inherited(device: &BluetoothDevice, connected: bool) -> BluetoothGATTRemoteServer {
BluetoothGATTRemoteServer {
reflector_: Reflector::new(),
device: JS::from_ref(device),
connected: connected,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment