Struct IMFHttpDownloadRequest
pub struct IMFHttpDownloadRequest(/* private fields */);
Implementations§
§impl IMFHttpDownloadRequest
impl IMFHttpDownloadRequest
pub unsafe fn AddHeader<P0>(&self, szheader: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn BeginSendRequest<P2, P3>(
&self,
pbpayload: Option<&[u8]>,
pcallback: P2,
punkstate: P3,
) -> Result<()>where
P2: Param<IMFAsyncCallback>,
P3: Param<IUnknown>,
pub unsafe fn EndSendRequest<P0>(&self, presult: P0) -> Result<()>where
P0: Param<IMFAsyncResult>,
pub unsafe fn BeginReceiveResponse<P0, P1>(
&self,
pcallback: P0,
punkstate: P1,
) -> Result<()>where
P0: Param<IMFAsyncCallback>,
P1: Param<IUnknown>,
pub unsafe fn EndReceiveResponse<P0>(&self, presult: P0) -> Result<()>where
P0: Param<IMFAsyncResult>,
pub unsafe fn BeginReadPayload<P2, P3>(
&self,
pb: &mut [u8],
pcallback: P2,
punkstate: P3,
) -> Result<()>where
P2: Param<IMFAsyncCallback>,
P3: Param<IUnknown>,
pub unsafe fn EndReadPayload<P0>(
&self,
presult: P0,
pqwoffset: *mut u64,
pcbread: *mut u32,
) -> Result<()>where
P0: Param<IMFAsyncResult>,
pub unsafe fn QueryHeader<P0>(
&self,
szheadername: P0,
dwindex: u32,
) -> Result<PWSTR>where
P0: Param<PCWSTR>,
pub unsafe fn GetURL(&self) -> Result<PWSTR>
pub unsafe fn HasNullSourceOrigin(&self) -> Result<BOOL>
pub unsafe fn GetTimeSeekResult( &self, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64, ) -> Result<()>
pub unsafe fn GetHttpStatus(&self) -> Result<u32>
pub unsafe fn GetAtEndOfPayload(&self) -> Result<BOOL>
pub unsafe fn GetTotalLength(&self) -> Result<u64>
pub unsafe fn GetRangeEndOffset(&self) -> Result<u64>
pub unsafe fn Close(&self) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IMFHttpDownloadRequest
impl CanInto<IUnknown> for IMFHttpDownloadRequest
§impl Clone for IMFHttpDownloadRequest
impl Clone for IMFHttpDownloadRequest
§fn clone(&self) -> IMFHttpDownloadRequest
fn clone(&self) -> IMFHttpDownloadRequest
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 more§impl Debug for IMFHttpDownloadRequest
impl Debug for IMFHttpDownloadRequest
§impl From<&IMFHttpDownloadRequest> for &IUnknown
impl From<&IMFHttpDownloadRequest> for &IUnknown
§fn from(value: &IMFHttpDownloadRequest) -> Self
fn from(value: &IMFHttpDownloadRequest) -> Self
Converts to this type from the input type.
§impl From<IMFHttpDownloadRequest> for IUnknown
impl From<IMFHttpDownloadRequest> for IUnknown
§fn from(value: IMFHttpDownloadRequest) -> Self
fn from(value: IMFHttpDownloadRequest) -> Self
Converts to this type from the input type.
§impl Interface for IMFHttpDownloadRequest
impl Interface for IMFHttpDownloadRequest
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IMFHttpDownloadRequest
impl PartialEq for IMFHttpDownloadRequest
impl Eq for IMFHttpDownloadRequest
impl StructuralPartialEq for IMFHttpDownloadRequest
Auto Trait Implementations§
impl Freeze for IMFHttpDownloadRequest
impl RefUnwindSafe for IMFHttpDownloadRequest
impl !Send for IMFHttpDownloadRequest
impl !Sync for IMFHttpDownloadRequest
impl Unpin for IMFHttpDownloadRequest
impl UnwindSafe for IMFHttpDownloadRequest
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