Struct emscripten_sys::emscripten_fetch_attr_t
[−]
[src]
#[repr(C)]pub struct emscripten_fetch_attr_t { pub requestMethod: [c_char; 32], pub userData: *mut c_void, pub onsuccess: Option<unsafe extern fn(_: *mut emscripten_fetch_t)>, pub onerror: Option<unsafe extern fn(_: *mut emscripten_fetch_t)>, pub onprogress: Option<unsafe extern fn(_: *mut emscripten_fetch_t)>, pub attributes: u32, pub timeoutMSecs: c_ulong, pub withCredentials: c_int, pub destinationPath: *const c_char, pub userName: *const c_char, pub password: *const c_char, pub requestHeaders: *const *const c_char, pub overriddenMimeType: *const c_char, pub requestData: *const c_char, pub requestDataSize: usize, }
Fields
requestMethod: [c_char; 32]
userData: *mut c_void
onsuccess: Option<unsafe extern fn(_: *mut emscripten_fetch_t)>
onerror: Option<unsafe extern fn(_: *mut emscripten_fetch_t)>
onprogress: Option<unsafe extern fn(_: *mut emscripten_fetch_t)>
attributes: u32
timeoutMSecs: c_ulong
withCredentials: c_int
destinationPath: *const c_char
userName: *const c_char
password: *const c_char
requestHeaders: *const *const c_char
overriddenMimeType: *const c_char
requestData: *const c_char
requestDataSize: usize
Trait Implementations
impl Debug for emscripten_fetch_attr_t
[src]
impl Copy for emscripten_fetch_attr_t
[src]
impl Clone for emscripten_fetch_attr_t
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more