Struct cookie_store::CookieStoreRwLock [−][src]
A CookieStore
wrapped internally by a std::sync::RwLock
, suitable for use in
async/concurrent contexts. (requires feature reqwest_impl
)
Implementations
impl CookieStoreRwLock
[src]
pub fn new(cookie_store: CookieStore) -> CookieStoreRwLock
[src]
This is supported on crate feature
reqwest_impl
only.Create a new CookieStoreRwLock
from an existing CookieStore
.
pub fn read(
&self
) -> Result<RwLockReadGuard<'_, CookieStore>, PoisonError<RwLockReadGuard<'_, CookieStore>>>
[src]
&self
) -> Result<RwLockReadGuard<'_, CookieStore>, PoisonError<RwLockReadGuard<'_, CookieStore>>>
This is supported on crate feature
reqwest_impl
only.Lock and get a read (non-exclusive) handle to the contained CookieStore
.
pub fn write(
&self
) -> Result<RwLockWriteGuard<'_, CookieStore>, PoisonError<RwLockWriteGuard<'_, CookieStore>>>
[src]
&self
) -> Result<RwLockWriteGuard<'_, CookieStore>, PoisonError<RwLockWriteGuard<'_, CookieStore>>>
This is supported on crate feature
reqwest_impl
only.Lock and get a write (exclusive) handle to the contained CookieStore
.
Trait Implementations
impl CookieStore for CookieStoreRwLock
[src]
This is supported on crate feature
reqwest_impl
only.fn set_cookies(
&self,
cookie_headers: &mut dyn Iterator<Item = &HeaderValue>,
url: &Url
)
[src]
&self,
cookie_headers: &mut dyn Iterator<Item = &HeaderValue>,
url: &Url
)
fn cookies(&self, url: &Url) -> Option<HeaderValue>
[src]
impl Debug for CookieStoreRwLock
[src]
This is supported on crate feature
reqwest_impl
only.impl Default for CookieStoreRwLock
[src]
This is supported on crate feature
reqwest_impl
only.fn default() -> Self
[src]
Create a new, empty CookieStoreRwLock
.
Auto Trait Implementations
impl RefUnwindSafe for CookieStoreRwLock
impl Send for CookieStoreRwLock
impl Sync for CookieStoreRwLock
impl Unpin for CookieStoreRwLock
impl UnwindSafe for CookieStoreRwLock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,