pub enum RfcommTestRequest {
Disconnect {
id: PeerId,
control_handle: RfcommTestControlHandle,
},
RemoteLineStatus {
id: PeerId,
channel_number: u8,
status: Status,
control_handle: RfcommTestControlHandle,
},
}
Expand description
Provides additional methods to initiate RFCOMM protocol behavior. These methods are strictly for testing.
Variants§
Disconnect
Disconnect the RFCOMM session with the connected peer.
This is a no-op if there is no connected peer with identifier id
.
- request
id
is the unique identifier associated with the connected RFCOMM peer.
RemoteLineStatus
Notify the connected peer of a change in the remote line status.
This is a no-op if there is no connected peer with identifier id
.
- request
id
is the unique identifier associated with the connected RFCOMM peer. - request
channel_number
is the identifier of the RFCOMM channel whose line status changed. - request
status
is the status of the line.
Implementations§
Source§impl RfcommTestRequest
impl RfcommTestRequest
pub fn into_disconnect(self) -> Option<(PeerId, RfcommTestControlHandle)>
pub fn into_remote_line_status( self, ) -> Option<(PeerId, u8, Status, RfcommTestControlHandle)>
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 RfcommTestRequest
impl !RefUnwindSafe for RfcommTestRequest
impl Send for RfcommTestRequest
impl Sync for RfcommTestRequest
impl Unpin for RfcommTestRequest
impl !UnwindSafe for RfcommTestRequest
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