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

pub struct Struct_PPB_URLLoader_1_0 {
    pub Create: Option< extern "C" fn(instance: PP_Instance) -> PP_Resource>,
    pub IsURLLoader: Option< extern "C" fn(resource: PP_Resource) -> PP_Bool>,
    pub Open: Option< extern "C" fn(loader: PP_Resource, request_info: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub FollowRedirect: Option< extern "C" fn(loader: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub GetUploadProgress: Option< extern "C" fn(loader: PP_Resource, bytes_sent: *mut int64_t, total_bytes_to_be_sent: *mut int64_t) -> PP_Bool>,
    pub GetDownloadProgress: Option< extern "C" fn(loader: PP_Resource, bytes_received: *mut int64_t, total_bytes_to_be_received: *mut int64_t) -> PP_Bool>,
    pub GetResponseInfo: Option< extern "C" fn(loader: PP_Resource) -> PP_Resource>,
    pub ReadResponseBody: Option< extern "C" fn(loader: PP_Resource, buffer: *mut c_void, bytes_to_read: int32_t, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub FinishStreamingToFile: Option< extern "C" fn(loader: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub Close: Option< extern "C" fn(loader: PP_Resource)>,
}

Fields

Create
IsURLLoader
Open
FollowRedirect
GetUploadProgress
GetDownloadProgress
GetResponseInfo
ReadResponseBody
FinishStreamingToFile
Close

Trait Implementations

impl Default for Struct_PPB_URLLoader_1_0

fn default() -> Struct_PPB_URLLoader_1_0

impl URLLoaderIf for Struct_PPB_URLLoader_1_0

fn create(&self, instance: PP_Instance) -> Option<PP_Resource>

fn is(&self, res: PP_Resource) -> bool

fn open(&self, loader: PP_Resource, request: PP_Resource, callback: Struct_PP_CompletionCallback) -> Result<()>

Derived Implementations

impl Copy for Struct_PPB_URLLoader_1_0