pub enum Request {
Read(ReadRequest),
Write(WriteRequest),
Subscribed {
central: RemoteCentral,
characteristic: BluetoothUuid,
},
Unsubscribed {
central: RemoteCentral,
characteristic: BluetoothUuid,
},
ReadyToNotify,
ChannelOpened(L2capChannel),
}Expand description
Something a central did that the application has to deal with.
Variants§
Read(ReadRequest)
Write(WriteRequest)
Subscribed
Unsubscribed
ReadyToNotify
Never emitted on Linux.
BlueZ has no equivalent of CoreBluetooth’s
peripheralManagerIsReadyToUpdateSubscribers: — a value change is
emitted on the bus and BlueZ queues it — but the variant exists so code
written against the other engines still compiles here.
ChannelOpened(L2capChannel)
A central connected to a published L2CAP channel.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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