pub struct RemoteCentral { /* private fields */ }Expand description
A central that is connected to us.
BlueZ identifies it by device object path; the address is the last element.
Implementations§
Source§impl RemoteCentral
impl RemoteCentral
pub fn id(&self) -> &str
Sourcepub fn is_identified(&self) -> bool
pub fn is_identified(&self) -> bool
Whether the platform actually identified this central.
When it did not, id is a placeholder that unrelated centrals share, so
never use it to tell centrals apart — for example, to bind an authenticated session to
the central that opened it. Check this first and treat an unidentified central as
untrusted.
Sourcepub fn max_notification_length(&self) -> usize
pub fn max_notification_length(&self) -> usize
The most bytes one notification to this central can carry.
Trait Implementations§
Source§impl Clone for RemoteCentral
impl Clone for RemoteCentral
Auto Trait Implementations§
impl Forget for RemoteCentral
impl Freeze for RemoteCentral
impl Move for RemoteCentral
impl RefUnwindSafe for RemoteCentral
impl Send for RemoteCentral
impl Sync for RemoteCentral
impl Unpin for RemoteCentral
impl UnsafeUnpin for RemoteCentral
impl UnwindSafe for RemoteCentral
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more