pub struct Struct_PPB_WebSocket_1_0 {
pub Create: Option< extern "C" fn(instance: PP_Instance) -> PP_Resource>,
pub IsWebSocket: Option< extern "C" fn(resource: PP_Resource) -> PP_Bool>,
pub Connect: Option< extern "C" fn(web_socket: PP_Resource, url: Struct_PP_Var, protocols: *const Struct_PP_Var, protocol_count: uint32_t, callback: Struct_PP_CompletionCallback) -> int32_t>,
pub Close: Option< extern "C" fn(web_socket: PP_Resource, code: uint16_t, reason: Struct_PP_Var, callback: Struct_PP_CompletionCallback) -> int32_t>,
pub ReceiveMessage: Option< extern "C" fn(web_socket: PP_Resource, message: *mut Struct_PP_Var, callback: Struct_PP_CompletionCallback) -> int32_t>,
pub SendMessage: Option< extern "C" fn(web_socket: PP_Resource, message: Struct_PP_Var) -> int32_t>,
pub GetBufferedAmount: Option< extern "C" fn(web_socket: PP_Resource) -> uint64_t>,
pub GetCloseCode: Option< extern "C" fn(web_socket: PP_Resource) -> uint16_t>,
pub GetCloseReason: Option< extern "C" fn(web_socket: PP_Resource) -> Struct_PP_Var>,
pub GetCloseWasClean: Option< extern "C" fn(web_socket: PP_Resource) -> PP_Bool>,
pub GetExtensions: Option< extern "C" fn(web_socket: PP_Resource) -> Struct_PP_Var>,
pub GetProtocol: Option< extern "C" fn(web_socket: PP_Resource) -> Struct_PP_Var>,
pub GetReadyState: Option< extern "C" fn(web_socket: PP_Resource) -> PP_WebSocketReadyState>,
pub GetURL: Option< extern "C" fn(web_socket: PP_Resource) -> Struct_PP_Var>,
}
Fields
Create | |
IsWebSocket | |
Connect | |
Close | |
ReceiveMessage | |
SendMessage | |
GetBufferedAmount | |
GetCloseCode | |
GetCloseReason | |
GetCloseWasClean | |
GetExtensions | |
GetProtocol | |
GetReadyState | |
GetURL | |
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
).