Struct reqwest_cookie_store::CookieStoreRwLock [−][src]
pub struct CookieStoreRwLock(_);
A cookie_store::CookieStore
wrapped internally by a std::sync::RwLock
, suitable for use in
async/concurrent contexts.
Implementations
impl CookieStoreRwLock
[src]
impl CookieStoreRwLock
[src]pub fn new(cookie_store: CookieStore) -> CookieStoreRwLock
[src]
pub fn new(cookie_store: CookieStore) -> CookieStoreRwLock
[src]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
.
pub fn into_inner(self) -> LockResult<CookieStore>
[src]
pub fn into_inner(self) -> LockResult<CookieStore>
[src]Consume this CookieStoreRwLock
, returning the underlying cookie_store::CookieStore
Trait Implementations
impl CookieStore for CookieStoreRwLock
[src]
impl CookieStore for CookieStoreRwLock
[src]fn set_cookies(
&self,
cookie_headers: &mut dyn Iterator<Item = &HeaderValue>,
url: &Url
)
[src]
fn set_cookies(
&self,
cookie_headers: &mut dyn Iterator<Item = &HeaderValue>,
url: &Url
)
[src]Store a set of Set-Cookie header values recevied from url
fn cookies(&self, url: &Url) -> Option<HeaderValue>
[src]
fn cookies(&self, url: &Url) -> Option<HeaderValue>
[src]Get any Cookie values in the store for url
impl Debug for CookieStoreRwLock
[src]
impl Debug for CookieStoreRwLock
[src]impl Default for CookieStoreRwLock
[src]
impl Default for CookieStoreRwLock
[src]fn default() -> Self
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]