pub struct RemoteCentral { /* private fields */ }Expand description
A central connected to this peripheral.
Implementations§
Source§impl RemoteCentral
impl RemoteCentral
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 can carry.
Android does not expose the negotiated MTU per central from the server side, so this is the value every link is guaranteed to accept.
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