Skip to main content

SciterRequestAPI

Struct SciterRequestAPI 

Source
#[repr(C)]
pub struct SciterRequestAPI {
Show 28 fields pub RequestUse: Option<unsafe extern "C" fn(rq: HREQUEST) -> REQUEST_RESULT>, pub RequestUnUse: Option<unsafe extern "C" fn(rq: HREQUEST) -> REQUEST_RESULT>, pub RequestUrl: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestContentUrl: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetRequestType: Option<unsafe extern "C" fn(rq: HREQUEST, pType: *mut LPCSTR) -> REQUEST_RESULT>, pub RequestGetRequestedDataType: Option<unsafe extern "C" fn(rq: HREQUEST, pData: *mut SciterResourceType) -> REQUEST_RESULT>, pub RequestGetReceivedDataType: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetNumberOfParameters: Option<unsafe extern "C" fn(rq: HREQUEST, pNumber: *mut UINT) -> REQUEST_RESULT>, pub RequestGetNthParameterName: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetNthParameterValue: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetTimes: Option<unsafe extern "C" fn(rq: HREQUEST, pStarted: *mut UINT, pEnded: *mut UINT) -> REQUEST_RESULT>, pub RequestGetNumberOfRqHeaders: Option<unsafe extern "C" fn(rq: HREQUEST, pNumber: *mut UINT) -> REQUEST_RESULT>, pub RequestGetNthRqHeaderName: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetNthRqHeaderValue: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetNumberOfRspHeaders: Option<unsafe extern "C" fn(rq: HREQUEST, pNumber: *mut UINT) -> REQUEST_RESULT>, pub RequestGetNthRspHeaderName: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetNthRspHeaderValue: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetCompletionStatus: Option<unsafe extern "C" fn(rq: HREQUEST, pState: *mut REQUEST_STATE, pCompletionStatus: *mut UINT) -> REQUEST_RESULT>, pub RequestGetProxyHost: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>, pub RequestGetProxyPort: Option<unsafe extern "C" fn(rq: HREQUEST, pPort: *mut UINT) -> REQUEST_RESULT>, pub RequestSetSucceeded: Option<unsafe extern "C" fn(rq: HREQUEST, status: UINT, dataOrNull: LPCBYTE, dataLength: UINT) -> REQUEST_RESULT>, pub RequestSetFailed: Option<unsafe extern "C" fn(rq: HREQUEST, status: UINT, dataOrNull: LPCBYTE, dataLength: UINT) -> REQUEST_RESULT>, pub RequestAppendDataChunk: Option<unsafe extern "C" fn(rq: HREQUEST, data: LPCBYTE, dataLength: UINT) -> REQUEST_RESULT>, pub RequestSetRqHeader: Option<unsafe extern "C" fn(rq: HREQUEST, name: LPCWSTR, value: LPCWSTR) -> REQUEST_RESULT>, pub RequestSetRspHeader: Option<unsafe extern "C" fn(rq: HREQUEST, name: LPCWSTR, value: LPCWSTR) -> REQUEST_RESULT>, pub RequestSetReceivedDataType: Option<unsafe extern "C" fn(rq: HREQUEST, type_: LPCSTR) -> REQUEST_RESULT>, pub RequestSetReceivedDataEncoding: Option<unsafe extern "C" fn(rq: HREQUEST, encoding: LPCSTR) -> REQUEST_RESULT>, pub RequestGetData: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCBYTE, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>,
}

Fields§

§RequestUse: Option<unsafe extern "C" fn(rq: HREQUEST) -> REQUEST_RESULT>§RequestUnUse: Option<unsafe extern "C" fn(rq: HREQUEST) -> REQUEST_RESULT>§RequestUrl: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestContentUrl: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetRequestType: Option<unsafe extern "C" fn(rq: HREQUEST, pType: *mut LPCSTR) -> REQUEST_RESULT>§RequestGetRequestedDataType: Option<unsafe extern "C" fn(rq: HREQUEST, pData: *mut SciterResourceType) -> REQUEST_RESULT>§RequestGetReceivedDataType: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetNumberOfParameters: Option<unsafe extern "C" fn(rq: HREQUEST, pNumber: *mut UINT) -> REQUEST_RESULT>§RequestGetNthParameterName: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetNthParameterValue: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetTimes: Option<unsafe extern "C" fn(rq: HREQUEST, pStarted: *mut UINT, pEnded: *mut UINT) -> REQUEST_RESULT>§RequestGetNumberOfRqHeaders: Option<unsafe extern "C" fn(rq: HREQUEST, pNumber: *mut UINT) -> REQUEST_RESULT>§RequestGetNthRqHeaderName: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetNthRqHeaderValue: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetNumberOfRspHeaders: Option<unsafe extern "C" fn(rq: HREQUEST, pNumber: *mut UINT) -> REQUEST_RESULT>§RequestGetNthRspHeaderName: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetNthRspHeaderValue: Option<unsafe extern "C" fn(rq: HREQUEST, n: UINT, rcv: Option<unsafe extern "C" fn(arg1: LPCWSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetCompletionStatus: Option<unsafe extern "C" fn(rq: HREQUEST, pState: *mut REQUEST_STATE, pCompletionStatus: *mut UINT) -> REQUEST_RESULT>§RequestGetProxyHost: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCSTR, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>§RequestGetProxyPort: Option<unsafe extern "C" fn(rq: HREQUEST, pPort: *mut UINT) -> REQUEST_RESULT>§RequestSetSucceeded: Option<unsafe extern "C" fn(rq: HREQUEST, status: UINT, dataOrNull: LPCBYTE, dataLength: UINT) -> REQUEST_RESULT>§RequestSetFailed: Option<unsafe extern "C" fn(rq: HREQUEST, status: UINT, dataOrNull: LPCBYTE, dataLength: UINT) -> REQUEST_RESULT>§RequestAppendDataChunk: Option<unsafe extern "C" fn(rq: HREQUEST, data: LPCBYTE, dataLength: UINT) -> REQUEST_RESULT>§RequestSetRqHeader: Option<unsafe extern "C" fn(rq: HREQUEST, name: LPCWSTR, value: LPCWSTR) -> REQUEST_RESULT>§RequestSetRspHeader: Option<unsafe extern "C" fn(rq: HREQUEST, name: LPCWSTR, value: LPCWSTR) -> REQUEST_RESULT>§RequestSetReceivedDataType: Option<unsafe extern "C" fn(rq: HREQUEST, type_: LPCSTR) -> REQUEST_RESULT>§RequestSetReceivedDataEncoding: Option<unsafe extern "C" fn(rq: HREQUEST, encoding: LPCSTR) -> REQUEST_RESULT>§RequestGetData: Option<unsafe extern "C" fn(rq: HREQUEST, rcv: Option<unsafe extern "C" fn(arg1: LPCBYTE, arg2: UINT, arg3: LPVOID)>, rcv_param: LPVOID) -> REQUEST_RESULT>

Trait Implementations§

Source§

impl Clone for SciterRequestAPI

Source§

fn clone(&self) -> SciterRequestAPI

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SciterRequestAPI

Source§

impl Debug for SciterRequestAPI

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'api> From<&'api SciterRequestAPI> for RequestApi<'api>

Source§

fn from(value: &'api SciterRequestAPI) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.