pub struct PiconetMember { /* private fields */ }Implementations§
Source§impl PiconetMember
impl PiconetMember
pub fn peer_id(&self) -> PeerId
pub fn new_from_spec( mock: PiconetMemberSpec, realm: &RealmInstance, ) -> Result<Self, Error>
Sourcepub fn register_service_search(
&self,
svc_id: ServiceClassProfileIdentifier,
attributes: Vec<u16>,
) -> Result<SearchResultsRequestStream, Error>
pub fn register_service_search( &self, svc_id: ServiceClassProfileIdentifier, attributes: Vec<u16>, ) -> Result<SearchResultsRequestStream, Error>
Register a service search using the Profile protocol for services that match svc_id.
Returns a stream of search results that can be polled to receive new requests.
Sourcepub fn register_service_advertisement(
&self,
service_defs: Vec<ServiceDefinition>,
) -> Result<ConnectionReceiverRequestStream, Error>
pub fn register_service_advertisement( &self, service_defs: Vec<ServiceDefinition>, ) -> Result<ConnectionReceiverRequestStream, Error>
Register a service advertisement using the Profile protocol with the provided
service_defs.
Returns a stream of connection requests that can be polled to receive new requests.
pub async fn make_connection( &self, peer_id: PeerId, params: ConnectParameters, ) -> Result<Channel, Error>
Auto Trait Implementations§
impl Freeze for PiconetMember
impl !RefUnwindSafe for PiconetMember
impl Send for PiconetMember
impl Sync for PiconetMember
impl Unpin for PiconetMember
impl UnsafeUnpin for PiconetMember
impl !UnwindSafe for PiconetMember
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more