pub struct PeerFinder;

Implementations§

§

impl PeerFinder

pub fn AllowBluetooth() -> Result<bool>

pub fn SetAllowBluetooth(value: bool) -> Result<()>

pub fn AllowInfrastructure() -> Result<bool>

pub fn SetAllowInfrastructure(value: bool) -> Result<()>

pub fn AllowWiFiDirect() -> Result<bool>

pub fn SetAllowWiFiDirect(value: bool) -> Result<()>

pub fn DisplayName() -> Result<HSTRING>

pub fn SetDisplayName(value: &HSTRING) -> Result<()>

pub fn SupportedDiscoveryTypes() -> Result<PeerDiscoveryTypes>

pub fn AlternateIdentities() -> Result<IMap<HSTRING, HSTRING>>

pub fn Start() -> Result<()>

pub fn StartWithMessage(peermessage: &HSTRING) -> Result<()>

pub fn Stop() -> Result<()>

pub fn TriggeredConnectionStateChanged<P0>( handler: P0 ) -> Result<EventRegistrationToken>

pub fn RemoveTriggeredConnectionStateChanged( cookie: EventRegistrationToken ) -> Result<()>

pub fn ConnectionRequested<P0>(handler: P0) -> Result<EventRegistrationToken>

pub fn RemoveConnectionRequested(cookie: EventRegistrationToken) -> Result<()>

pub fn FindAllPeersAsync( ) -> Result<IAsyncOperation<IVectorView<PeerInformation>>>

pub fn ConnectAsync<P0>( peerinformation: P0 ) -> Result<IAsyncOperation<StreamSocket>>
where P0: IntoParam<PeerInformation>,

pub fn Role() -> Result<PeerRole>

pub fn SetRole(value: PeerRole) -> Result<()>

pub fn DiscoveryData() -> Result<IBuffer>

pub fn SetDiscoveryData<P0>(value: P0) -> Result<()>
where P0: IntoParam<IBuffer>,

pub fn CreateWatcher() -> Result<PeerWatcher>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.