pub struct AutoAgent;Expand description
An agent for a device with no person at it: accepts Just Works and Numeric Comparison, refuses anything needing a passkey or OOB data.
Trait Implementations§
Source§impl Agent for AutoAgent
impl Agent for AutoAgent
Source§fn accept(&self, _peer: Address, m: Method) -> BoxFuture<'_, bool>
fn accept(&self, _peer: Address, m: Method) -> BoxFuture<'_, bool>
A peer asks to pair with this method; return false to refuse.
Source§fn display_passkey(&self, peer: Address, passkey: u32) -> BoxFuture<'_, ()>
fn display_passkey(&self, peer: Address, passkey: u32) -> BoxFuture<'_, ()>
Show this passkey (the peer types it).
Source§fn request_passkey(&self, _peer: Address) -> BoxFuture<'_, Option<u32>>
fn request_passkey(&self, _peer: Address) -> BoxFuture<'_, Option<u32>>
Type the passkey the peer shows;
None cancels.Auto Trait Implementations§
impl Forget for AutoAgent
impl Freeze for AutoAgent
impl Move for AutoAgent
impl RefUnwindSafe for AutoAgent
impl Send for AutoAgent
impl Sync for AutoAgent
impl Unpin for AutoAgent
impl UnsafeUnpin for AutoAgent
impl UnwindSafe for AutoAgent
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