pub enum HciTransportRequest {
Send_ {
payload: SentPacket,
responder: HciTransportSend_Responder,
},
AckReceive {
control_handle: HciTransportControlHandle,
},
ConfigureSco {
payload: HciTransportConfigureScoRequest,
control_handle: HciTransportControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: HciTransportControlHandle,
method_type: MethodType,
},
}
Variants§
Send_
More than one Send can be pending simultaneously. Prefer to limit the number of pending calls to avoid overflow. A maximum of 10 pending calls is suggested. If an event or SCO packet is received by the server, the server should close the protocol.
AckReceive
Fields
§
control_handle: HciTransportControlHandle
ConfigureSco
Establish a SCO connection. Only 1 SCO connection can be configured at a time.
_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: HciTransportControlHandle
§
method_type: MethodType
Implementations§
Source§impl HciTransportRequest
impl HciTransportRequest
pub fn into_send_(self) -> Option<(SentPacket, HciTransportSend_Responder)>
pub fn into_ack_receive(self) -> Option<HciTransportControlHandle>
pub fn into_configure_sco( self, ) -> Option<(HciTransportConfigureScoRequest, HciTransportControlHandle)>
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 HciTransportRequest
impl !RefUnwindSafe for HciTransportRequest
impl Send for HciTransportRequest
impl Sync for HciTransportRequest
impl Unpin for HciTransportRequest
impl !UnwindSafe for HciTransportRequest
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