pub struct FixedAgent {
pub passkey: Option<u32>,
pub confirm: bool,
pub oob: Option<OobData>,
}Expand description
An agent with fixed answers: a passkey to show and to type, whether to confirm numbers, and OOB data.
Fields§
§passkey: Option<u32>The passkey shown and typed (0 to 999999); None refuses passkey entry.
confirm: boolAnswer to numeric comparison.
oob: Option<OobData>OOB data to use.
Trait Implementations§
Source§impl Agent for FixedAgent
impl Agent for FixedAgent
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.Source§impl Clone for FixedAgent
impl Clone for FixedAgent
Source§impl Debug for FixedAgent
impl Debug for FixedAgent
Auto Trait Implementations§
impl Freeze for FixedAgent
impl RefUnwindSafe for FixedAgent
impl Send for FixedAgent
impl Sync for FixedAgent
impl Unpin for FixedAgent
impl UnsafeUnpin for FixedAgent
impl UnwindSafe for FixedAgent
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