pub enum ScoConnectionRequest {
Send_ {
packet: Vec<u8>,
responder: ScoConnectionSend_Responder,
},
AckReceive {
control_handle: ScoConnectionControlHandle,
},
Stop {
control_handle: ScoConnectionControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: ScoConnectionControlHandle,
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.
AckReceive
Fields
§
control_handle: ScoConnectionControlHandle
Stop
The server will close the protocol when Stop
is received. This is useful for
synchronization (e.g. before configuring another ScoConnection
).
Fields
§
control_handle: ScoConnectionControlHandle
_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: ScoConnectionControlHandle
§
method_type: MethodType
Implementations§
Source§impl ScoConnectionRequest
impl ScoConnectionRequest
pub fn into_send_(self) -> Option<(Vec<u8>, ScoConnectionSend_Responder)>
pub fn into_ack_receive(self) -> Option<ScoConnectionControlHandle>
pub fn into_stop(self) -> Option<ScoConnectionControlHandle>
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 ScoConnectionRequest
impl !RefUnwindSafe for ScoConnectionRequest
impl Send for ScoConnectionRequest
impl Sync for ScoConnectionRequest
impl Unpin for ScoConnectionRequest
impl !UnwindSafe for ScoConnectionRequest
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