Struct windows::Networking::Proximity::PeerFinder
pub struct PeerFinder;
Implementations§
§impl PeerFinder
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>where
P0: Param<TypedEventHandler<IInspectable, TriggeredConnectionStateChangedEventArgs>>,
pub fn RemoveTriggeredConnectionStateChanged( cookie: EventRegistrationToken, ) -> Result<()>
pub fn ConnectionRequested<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<IInspectable, ConnectionRequestedEventArgs>>,
pub fn RemoveConnectionRequested(cookie: EventRegistrationToken) -> Result<()>
pub fn FindAllPeersAsync() -> Result<IAsyncOperation<IVectorView<PeerInformation>>>
pub fn ConnectAsync<P0>(
peerinformation: P0,
) -> Result<IAsyncOperation<StreamSocket>>where
P0: Param<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: Param<IBuffer>,
pub fn CreateWatcher() -> Result<PeerWatcher>
Auto Trait Implementations§
impl Freeze for PeerFinder
impl RefUnwindSafe for PeerFinder
impl Send for PeerFinder
impl Sync for PeerFinder
impl Unpin for PeerFinder
impl UnwindSafe for PeerFinder
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