Struct bluster::Peripheral
source · pub struct Peripheral { /* private fields */ }
Implementations
sourceimpl Peripheral
impl Peripheral
pub fn new(
runtime: &Arc<Mutex<Runtime>>
) -> Box<impl Future<Item = Self, Error = Error>>
pub fn is_powered(&self) -> Box<impl Future<Item = bool, Error = Error>>
pub fn start_advertising(
&self,
name: &str,
uuids: &[Uuid]
) -> Box<impl Future<Item = Box<impl Stream<Item = (), Error = Error>>, Error = Error>>
pub fn stop_advertising(&self) -> Box<impl Future<Item = (), Error = Error>>
pub fn is_advertising(&self) -> Box<impl Future<Item = bool, Error = Error>>
pub fn add_service(&self, service: &Service) -> Result<(), Error>
Auto Trait Implementations
impl !RefUnwindSafe for Peripheral
impl !Send for Peripheral
impl !Sync for Peripheral
impl Unpin for Peripheral
impl !UnwindSafe for Peripheral
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more