pub struct PiconetMemberSpec {
pub name: String,
pub id: PeerId,
/* private fields */
}
Expand description
Specification data for creating a peer in the mock piconet. This may be a peer that will be driven by test code or one that is an actual Bluetooth profile implementation.
Fields§
§name: String
§id: PeerId
Implementations§
Source§impl PiconetMemberSpec
impl PiconetMemberSpec
pub fn get_profile_proxy( &self, topology: &RealmInstance, ) -> Result<ProfileProxy, Error>
Sourcepub fn for_profile(
name: String,
rfcomm_url: Option<String>,
expose_capabilities: Vec<Capability>,
) -> Result<(Self, PeerObserverRequestStream), Error>
pub fn for_profile( name: String, rfcomm_url: Option<String>, expose_capabilities: Vec<Capability>, ) -> Result<(Self, PeerObserverRequestStream), Error>
Create a PiconetMemberSpec configured to be used with a Profile
component which is under test.
rfcomm_url
is the URL for an optional v2 RFCOMM component that will sit between the
Profile and the Mock Piconet Server.
expose_capabilities
specifies protocol capabilities provided by this Profile component to
be exposed above the test root.
Sourcepub fn for_mock_peer(name: String, rfcomm_url: Option<String>) -> Self
pub fn for_mock_peer(name: String, rfcomm_url: Option<String>) -> Self
Create a PiconetMemberSpec designed to be used with a peer that will be driven
by test code.
rfcomm_url
is the URL for an optional v2 RFCOMM component that will sit between the
mock peer and the integration test client.
Trait Implementations§
Source§impl Clone for PiconetMemberSpec
impl Clone for PiconetMemberSpec
Source§fn clone(&self) -> PiconetMemberSpec
fn clone(&self) -> PiconetMemberSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PiconetMemberSpec
impl !RefUnwindSafe for PiconetMemberSpec
impl Send for PiconetMemberSpec
impl Sync for PiconetMemberSpec
impl Unpin for PiconetMemberSpec
impl !UnwindSafe for PiconetMemberSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)