Struct ppapi::ffi::Struct_PPB_WebSocket_1_0Experimental [-]  [+] [src]

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

impl Default for Struct_PPB_WebSocket_1_0

fn default() -> Struct_PPB_WebSocket_1_0

Derived Implementations

impl Copy for Struct_PPB_WebSocket_1_0