#[repr(C)]pub struct tm_https_api {
pub get: Option<unsafe extern "C" fn(*const tm_https_request_t, *mut tm_temp_allocator_i, *mut tm_https_progress_t) -> tm_https_response_t>,
pub get_to_file: Option<unsafe extern "C" fn(*const tm_https_request_t, *const i8, *mut tm_temp_allocator_i, *mut tm_https_progress_t) -> tm_https_response_t>,
pub create: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_https_o>,
pub destroy: Option<unsafe extern "C" fn(*mut tm_https_o)>,
pub open: Option<unsafe extern "C" fn(*mut tm_https_o, *mut tm_https_request_t)>,
pub response: Option<unsafe extern "C" fn(*mut tm_https_o, *const tm_https_request_t) -> tm_https_response_t>,
pub close: Option<unsafe extern "C" fn(*mut tm_https_o, *mut tm_https_request_t)>,
}Fields§
§get: Option<unsafe extern "C" fn(*const tm_https_request_t, *mut tm_temp_allocator_i, *mut tm_https_progress_t) -> tm_https_response_t>§get_to_file: Option<unsafe extern "C" fn(*const tm_https_request_t, *const i8, *mut tm_temp_allocator_i, *mut tm_https_progress_t) -> tm_https_response_t>§create: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_https_o>§destroy: Option<unsafe extern "C" fn(*mut tm_https_o)>§open: Option<unsafe extern "C" fn(*mut tm_https_o, *mut tm_https_request_t)>§response: Option<unsafe extern "C" fn(*mut tm_https_o, *const tm_https_request_t) -> tm_https_response_t>§close: Option<unsafe extern "C" fn(*mut tm_https_o, *mut tm_https_request_t)>Trait Implementations§
Source§impl Clone for tm_https_api
impl Clone for tm_https_api
Source§fn clone(&self) -> tm_https_api
fn clone(&self) -> tm_https_api
Returns a duplicate 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 moreimpl Copy for tm_https_api
Auto Trait Implementations§
impl Freeze for tm_https_api
impl RefUnwindSafe for tm_https_api
impl Send for tm_https_api
impl Sync for tm_https_api
impl Unpin for tm_https_api
impl UnwindSafe for tm_https_api
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