pub enum VendorRequest {
GetFeatures {
responder: VendorGetFeaturesResponder,
},
EncodeCommand {
command: BtVendorCommand,
responder: VendorEncodeCommandResponder,
},
OpenHci {
responder: VendorOpenHciResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: VendorControlHandle,
method_type: MethodType,
},
}
Expand description
The BtVendor protocol may be implemented by vendor drivers to support feature interrogation and vendor command encoding.
Variants§
GetFeatures
Returns bitmask of the features the vendor supports.
Fields
§
responder: VendorGetFeaturesResponder
EncodeCommand
Encodes the vendor HCI command command
using params
and returns the encoded command as
a buffer. params
must contain the parameter struct for the specified command, as
documented in BtVendorCommand
.
Returns an error status if the command is not supported or the paramaters are invalid.
OpenHci
Open the HCI protocol to the controller. This call may block until the controller has been initialized. Returns ALREADY_BOUND if another client has already connected.
Fields
§
responder: VendorOpenHciResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: VendorControlHandle
§
method_type: MethodType
Implementations§
source§impl VendorRequest
impl VendorRequest
pub fn into_get_features(self) -> Option<VendorGetFeaturesResponder>
pub fn into_encode_command( self ) -> Option<(BtVendorCommand, VendorEncodeCommandResponder)>
pub fn into_open_hci(self) -> Option<VendorOpenHciResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VendorRequest
impl !RefUnwindSafe for VendorRequest
impl Send for VendorRequest
impl Sync for VendorRequest
impl Unpin for VendorRequest
impl !UnwindSafe for VendorRequest
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