[][src]Trait rustable::Device

pub trait Device<'a>: Sized {
    type ServiceBase;
    type ServiceType: Service<'a>;
    fn services(&mut self) -> Keys<UUID, Self::ServiceBase>;
fn get_service(&'a mut self, uuid: &UUID) -> Option<Self::ServiceType>;
fn has_service(&self, uuid: &UUID) -> bool;
fn address(&self) -> &MAC;
fn address_type(&mut self) -> AddrType;
fn name(&mut self) -> String; }

Associated Types

Loading content...

Required methods

fn services(&mut self) -> Keys<UUID, Self::ServiceBase>

fn get_service(&'a mut self, uuid: &UUID) -> Option<Self::ServiceType>

fn has_service(&self, uuid: &UUID) -> bool

fn address(&self) -> &MAC

fn address_type(&mut self) -> AddrType

fn name(&mut self) -> String

Loading content...

Implementors

impl<'a, 'b: 'a, 'c: 'a> Device<'a> for Bluetooth[src]

type ServiceBase = LocalServiceBase

type ServiceType = LocalService<'a>

impl<'a, 'c: 'a> Device<'a> for RemoteDevice<'c>[src]

type ServiceBase = RemoteServiceBase

type ServiceType = RemoteService<'a, 'c>

Loading content...