Struct reqwest_cookie_store::CookieStoreRwLock [−][src]
pub struct CookieStoreRwLock(_);
Expand description
A cookie_store::CookieStore
wrapped internally by a std::sync::RwLock
, suitable for use in
async/concurrent contexts.
Implementations
Create a new CookieStoreRwLock
from an existing cookie_store::CookieStore
.
pub fn read(
&self
) -> Result<RwLockReadGuard<'_, CookieStore>, PoisonError<RwLockReadGuard<'_, CookieStore>>>
[src]
pub fn read(
&self
) -> Result<RwLockReadGuard<'_, CookieStore>, PoisonError<RwLockReadGuard<'_, CookieStore>>>
[src]Lock and get a read (non-exclusive) handle to the contained cookie_store::CookieStore
.
pub fn write(
&self
) -> Result<RwLockWriteGuard<'_, CookieStore>, PoisonError<RwLockWriteGuard<'_, CookieStore>>>
[src]
pub fn write(
&self
) -> Result<RwLockWriteGuard<'_, CookieStore>, PoisonError<RwLockWriteGuard<'_, CookieStore>>>
[src]Lock and get a write (exclusive) handle to the contained cookie_store::CookieStore
.
Consume this CookieStoreRwLock
, returning the underlying cookie_store::CookieStore
Trait Implementations
Store a set of Set-Cookie header values recevied from url
Get any Cookie values in the store for url
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