pub struct Struct_PPB_UDPSocket_1_0 {
pub Create: Option< extern "C" fn(instance: PP_Instance) -> PP_Resource>,
pub IsUDPSocket: Option< extern "C" fn(resource: PP_Resource) -> PP_Bool>,
pub Bind: Option< extern "C" fn(udp_socket: PP_Resource, addr: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
pub GetBoundAddress: Option< extern "C" fn(udp_socket: PP_Resource) -> PP_Resource>,
pub RecvFrom: Option< extern "C" fn(udp_socket: PP_Resource, buffer: *mut c_char, num_bytes: int32_t, addr: *mut PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
pub SendTo: Option< extern "C" fn(udp_socket: PP_Resource, buffer: *const c_char, num_bytes: int32_t, addr: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
pub Close: Option< extern "C" fn(udp_socket: PP_Resource)>,
pub SetOption: Option< extern "C" fn(udp_socket: PP_Resource, name: PP_UDPSocket_Option, value: Struct_PP_Var, callback: Struct_PP_CompletionCallback) -> int32_t>,
}
Fields
Create | |
IsUDPSocket | |
Bind | |
GetBoundAddress | |
RecvFrom | |
SendTo | |
Close | |
SetOption | |
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).