Struct windows::Web::Http::Headers::HttpResponseHeaderCollection
pub struct HttpResponseHeaderCollection(/* private fields */);
Implementations§
§impl HttpResponseHeaderCollection
impl HttpResponseHeaderCollection
pub fn Age(&self) -> Result<IReference<TimeSpan>>
pub fn SetAge<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<TimeSpan>>,
pub fn Allow(&self) -> Result<HttpMethodHeaderValueCollection>
pub fn CacheControl(&self) -> Result<HttpCacheDirectiveHeaderValueCollection>
pub fn Connection(&self) -> Result<HttpConnectionOptionHeaderValueCollection>
pub fn Date(&self) -> Result<IReference<DateTime>>
pub fn SetDate<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<DateTime>>,
pub fn Location(&self) -> Result<Uri>
pub fn SetLocation<P0>(&self, value: P0) -> Result<()>where
P0: Param<Uri>,
pub fn ProxyAuthenticate(&self) -> Result<HttpChallengeHeaderValueCollection>
pub fn RetryAfter(&self) -> Result<HttpDateOrDeltaHeaderValue>
pub fn SetRetryAfter<P0>(&self, value: P0) -> Result<()>where
P0: Param<HttpDateOrDeltaHeaderValue>,
pub fn TransferEncoding( &self, ) -> Result<HttpTransferCodingHeaderValueCollection>
pub fn WwwAuthenticate(&self) -> Result<HttpChallengeHeaderValueCollection>
pub fn Append(&self, name: &HSTRING, value: &HSTRING) -> Result<()>
pub fn TryAppendWithoutValidation( &self, name: &HSTRING, value: &HSTRING, ) -> Result<bool>
pub fn First(&self) -> Result<IIterator<IKeyValuePair<HSTRING, HSTRING>>>
pub fn Lookup(&self, key: &HSTRING) -> Result<HSTRING>
pub fn Size(&self) -> Result<u32>
pub fn HasKey(&self, key: &HSTRING) -> Result<bool>
pub fn GetView(&self) -> Result<IMapView<HSTRING, HSTRING>>
pub fn Insert(&self, key: &HSTRING, value: &HSTRING) -> Result<bool>
pub fn Remove(&self, key: &HSTRING) -> Result<()>
pub fn Clear(&self) -> Result<()>
pub fn ToString(&self) -> Result<HSTRING>
Trait Implementations§
§impl CanInto<IInspectable> for HttpResponseHeaderCollection
impl CanInto<IInspectable> for HttpResponseHeaderCollection
§impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpResponseHeaderCollection
impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpResponseHeaderCollection
§impl CanInto<IStringable> for HttpResponseHeaderCollection
impl CanInto<IStringable> for HttpResponseHeaderCollection
§impl CanInto<IUnknown> for HttpResponseHeaderCollection
impl CanInto<IUnknown> for HttpResponseHeaderCollection
§impl Clone for HttpResponseHeaderCollection
impl Clone for HttpResponseHeaderCollection
§fn clone(&self) -> HttpResponseHeaderCollection
fn clone(&self) -> HttpResponseHeaderCollection
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 HttpResponseHeaderCollection
impl Debug for HttpResponseHeaderCollection
§impl From<&HttpResponseHeaderCollection> for &IInspectable
impl From<&HttpResponseHeaderCollection> for &IInspectable
§fn from(value: &HttpResponseHeaderCollection) -> Self
fn from(value: &HttpResponseHeaderCollection) -> Self
Converts to this type from the input type.
§impl From<&HttpResponseHeaderCollection> for &IUnknown
impl From<&HttpResponseHeaderCollection> for &IUnknown
§fn from(value: &HttpResponseHeaderCollection) -> Self
fn from(value: &HttpResponseHeaderCollection) -> Self
Converts to this type from the input type.
§impl From<HttpResponseHeaderCollection> for IInspectable
impl From<HttpResponseHeaderCollection> for IInspectable
§fn from(value: HttpResponseHeaderCollection) -> Self
fn from(value: HttpResponseHeaderCollection) -> Self
Converts to this type from the input type.
§impl From<HttpResponseHeaderCollection> for IUnknown
impl From<HttpResponseHeaderCollection> for IUnknown
§fn from(value: HttpResponseHeaderCollection) -> Self
fn from(value: HttpResponseHeaderCollection) -> Self
Converts to this type from the input type.
§impl Interface for HttpResponseHeaderCollection
impl Interface for HttpResponseHeaderCollection
§const IID: GUID = <IHttpResponseHeaderCollection as windows_core::Interface>::IID
const IID: GUID = <IHttpResponseHeaderCollection as windows_core::Interface>::IID
The
GUID
associated with the interface.§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.
§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 IntoIterator for &HttpResponseHeaderCollection
impl IntoIterator for &HttpResponseHeaderCollection
§type Item = IKeyValuePair<HSTRING, HSTRING>
type Item = IKeyValuePair<HSTRING, HSTRING>
The type of the elements being iterated over.
§type IntoIter = IIterator<<&HttpResponseHeaderCollection as IntoIterator>::Item>
type IntoIter = IIterator<<&HttpResponseHeaderCollection as IntoIterator>::Item>
Which kind of iterator are we turning this into?
§impl IntoIterator for HttpResponseHeaderCollection
impl IntoIterator for HttpResponseHeaderCollection
§type Item = IKeyValuePair<HSTRING, HSTRING>
type Item = IKeyValuePair<HSTRING, HSTRING>
The type of the elements being iterated over.
§type IntoIter = IIterator<<HttpResponseHeaderCollection as IntoIterator>::Item>
type IntoIter = IIterator<<HttpResponseHeaderCollection as IntoIterator>::Item>
Which kind of iterator are we turning this into?
§impl PartialEq for HttpResponseHeaderCollection
impl PartialEq for HttpResponseHeaderCollection
§fn eq(&self, other: &HttpResponseHeaderCollection) -> bool
fn eq(&self, other: &HttpResponseHeaderCollection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HttpResponseHeaderCollection
impl Send for HttpResponseHeaderCollection
impl StructuralPartialEq for HttpResponseHeaderCollection
impl Sync for HttpResponseHeaderCollection
Auto Trait Implementations§
impl Freeze for HttpResponseHeaderCollection
impl RefUnwindSafe for HttpResponseHeaderCollection
impl Unpin for HttpResponseHeaderCollection
impl UnwindSafe for HttpResponseHeaderCollection
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
)