blob: 1a15ac9a16ac254dea6eb84f1b2989d2975db0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
pub type ConnectionRequestedEventArgs = *mut ::core::ffi::c_void;
pub type DeviceArrivedEventHandler = *mut ::core::ffi::c_void;
pub type DeviceDepartedEventHandler = *mut ::core::ffi::c_void;
pub type MessageReceivedHandler = *mut ::core::ffi::c_void;
pub type MessageTransmittedHandler = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Networking_Proximity\"`*"]
#[repr(transparent)]
pub struct PeerDiscoveryTypes(pub u32);
impl PeerDiscoveryTypes {
pub const None: Self = Self(0u32);
pub const Browse: Self = Self(1u32);
pub const Triggered: Self = Self(2u32);
}
impl ::core::marker::Copy for PeerDiscoveryTypes {}
impl ::core::clone::Clone for PeerDiscoveryTypes {
fn clone(&self) -> Self {
*self
}
}
pub type PeerInformation = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Networking_Proximity\"`*"]
#[repr(transparent)]
pub struct PeerRole(pub i32);
impl PeerRole {
pub const Peer: Self = Self(0i32);
pub const Host: Self = Self(1i32);
pub const Client: Self = Self(2i32);
}
impl ::core::marker::Copy for PeerRole {}
impl ::core::clone::Clone for PeerRole {
fn clone(&self) -> Self {
*self
}
}
pub type PeerWatcher = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Networking_Proximity\"`*"]
#[repr(transparent)]
pub struct PeerWatcherStatus(pub i32);
impl PeerWatcherStatus {
pub const Created: Self = Self(0i32);
pub const Started: Self = Self(1i32);
pub const EnumerationCompleted: Self = Self(2i32);
pub const Stopping: Self = Self(3i32);
pub const Stopped: Self = Self(4i32);
pub const Aborted: Self = Self(5i32);
}
impl ::core::marker::Copy for PeerWatcherStatus {}
impl ::core::clone::Clone for PeerWatcherStatus {
fn clone(&self) -> Self {
*self
}
}
pub type ProximityDevice = *mut ::core::ffi::c_void;
pub type ProximityMessage = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Networking_Proximity\"`*"]
#[repr(transparent)]
pub struct TriggeredConnectState(pub i32);
impl TriggeredConnectState {
pub const PeerFound: Self = Self(0i32);
pub const Listening: Self = Self(1i32);
pub const Connecting: Self = Self(2i32);
pub const Completed: Self = Self(3i32);
pub const Canceled: Self = Self(4i32);
pub const Failed: Self = Self(5i32);
}
impl ::core::marker::Copy for TriggeredConnectState {}
impl ::core::clone::Clone for TriggeredConnectState {
fn clone(&self) -> Self {
*self
}
}
pub type TriggeredConnectionStateChangedEventArgs = *mut ::core::ffi::c_void;
|