Trait bluetooth_hci::host::uart::Hci[][src]

pub trait Hci<E, Vendor, VE>: Hci<E> {
    fn read(&mut self) -> Result<Packet<Vendor>, Error<E, VE>>
    where
        Vendor: VendorEvent<Error = VE>
; }

Trait for reading packets from the controller.

Implementors must also implement ::host::Hci, which provides all of the functions to write commands to the controller. This trait adds the ability to read packets back from the controller.

Must be specialized for communication errors (E), vendor-specific events (Vendor), and vendor-specific errors (VE).

Required Methods

Reads and returns a packet from the controller. Consumes exactly enough bytes to read the next packet including its header.

Errors

Implementors