pub enum ConnectionPriority {
Balanced,
High,
LowPower,
}Expand description
How aggressively to maintain a connection.
Not part of Web Bluetooth, and a hint rather than an instruction: the
peripheral has the final say on the connection interval, and only some
platforms can even ask. See
BluetoothDevice::request_connection_priority.
Variants§
Balanced
Whatever the platform considers a reasonable default.
High
A shorter interval: lower latency, more power, and fewer simultaneous connections the controller can keep.
LowPower
A longer interval: less power, higher latency.
Trait Implementations§
Source§impl Clone for ConnectionPriority
impl Clone for ConnectionPriority
impl Copy for ConnectionPriority
Source§impl Debug for ConnectionPriority
impl Debug for ConnectionPriority
impl Eq for ConnectionPriority
Source§impl PartialEq for ConnectionPriority
impl PartialEq for ConnectionPriority
impl StructuralPartialEq for ConnectionPriority
Auto Trait Implementations§
impl Freeze for ConnectionPriority
impl RefUnwindSafe for ConnectionPriority
impl Send for ConnectionPriority
impl Sync for ConnectionPriority
impl Unpin for ConnectionPriority
impl UnsafeUnpin for ConnectionPriority
impl UnwindSafe for ConnectionPriority
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