[−][src]Struct user_agent::Session
Fields
client: C
store: CookieStore
Methods
impl<C: SessionClient> Session<C>
[src]
pub fn new(client: C) -> Self
[src]
pub fn load<R, E, F>(
client: C,
reader: R,
cookie_from_str: F
) -> Result<Session<C>, Error> where
R: BufRead,
F: Fn(&str) -> Result<Cookie<'static>, E>,
Error: From<E>,
[src]
client: C,
reader: R,
cookie_from_str: F
) -> Result<Session<C>, Error> where
R: BufRead,
F: Fn(&str) -> Result<Cookie<'static>, E>,
Error: From<E>,
pub fn load_json<R: BufRead>(client: C, reader: R) -> Result<Session<C>, Error>
[src]
pub fn save<W, E, F>(
&self,
writer: &mut W,
cookie_to_string: F
) -> Result<(), Error> where
W: Write,
F: Fn(&Cookie) -> Result<String, E>,
Error: From<E>,
[src]
&self,
writer: &mut W,
cookie_to_string: F
) -> Result<(), Error> where
W: Write,
F: Fn(&Cookie) -> Result<String, E>,
Error: From<E>,
pub fn save_json<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn get_with<U, P>(
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
[src]
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
pub fn put_with<U, P>(
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
[src]
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
pub fn head_with<U, P>(
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
[src]
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
pub fn delete_with<U, P>(
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
[src]
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
pub fn post_with<U, P>(
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
[src]
&mut self,
url: U,
prepare: P
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
P: FnOnce(<C as SessionClient>::Request) -> <C as SessionClient>::Request,
U: IntoUrl,
pub fn get<U>(
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
[src]
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
pub fn put<U>(
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
[src]
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
pub fn head<U>(
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
[src]
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
pub fn delete<U>(
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
[src]
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
pub fn post<U>(
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
[src]
&mut self,
url: U
) -> Result<<C as SessionClient>::Response, <C as SessionClient>::SendError> where
U: IntoUrl,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,