Struct classicube_sys::HttpRequest
source · #[repr(C)]pub struct HttpRequest {Show 17 fields
pub url: [c_char; 128],
pub id: c_int,
pub progress: c_int,
pub timeDownloaded: cc_uint64,
pub statusCode: c_int,
pub contentLength: cc_uint32,
pub result: cc_result,
pub data: *mut cc_uint8,
pub size: cc_uint32,
pub _capacity: cc_uint32,
pub meta: *mut c_void,
pub error: *mut c_char,
pub lastModified: [c_char; 64],
pub etag: [c_char; 64],
pub requestType: cc_uint8,
pub success: cc_bool,
pub cookies: *mut StringsBuffer,
}
Fields§
§url: [c_char; 128]
§id: c_int
§progress: c_int
§timeDownloaded: cc_uint64
§statusCode: c_int
§contentLength: cc_uint32
§result: cc_result
§data: *mut cc_uint8
§size: cc_uint32
§_capacity: cc_uint32
§meta: *mut c_void
§error: *mut c_char
§lastModified: [c_char; 64]
§etag: [c_char; 64]
§requestType: cc_uint8
§success: cc_bool
Trait Implementations§
source§impl Clone for HttpRequest
impl Clone for HttpRequest
source§fn clone(&self) -> HttpRequest
fn clone(&self) -> HttpRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HttpRequest
impl Debug for HttpRequest
source§impl Hash for HttpRequest
impl Hash for HttpRequest
source§impl PartialEq for HttpRequest
impl PartialEq for HttpRequest
source§fn eq(&self, other: &HttpRequest) -> bool
fn eq(&self, other: &HttpRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HttpRequest
impl Eq for HttpRequest
impl StructuralPartialEq for HttpRequest
Auto Trait Implementations§
impl Freeze for HttpRequest
impl RefUnwindSafe for HttpRequest
impl !Send for HttpRequest
impl !Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)