pub struct AnonymousSessionBuilder<'a> { /* private fields */ }👎Deprecated since 2.1.2: The “fedora” crate is obsolete.
The OpenID-based authentication method for Fedora web services provided by this crate no longer works.
There is currently no known replacement.
Expand description
This type encapsulates the (optional) arguments that are required for building an anonymous session.
Implementations§
Source§impl<'a> AnonymousSessionBuilder<'a>
impl<'a> AnonymousSessionBuilder<'a>
Sourcepub fn new() -> Self
👎Deprecated since 2.1.2: The “fedora” crate is obsolete.
The OpenID-based authentication method for Fedora web services provided by this crate no longer works.
There is currently no known replacement.
pub fn new() -> Self
This method constructs a new AnonymousSessionBuilder instance.
Sourcepub fn timeout(self, timeout: Duration) -> Self
👎Deprecated since 2.1.2: The “fedora” crate is obsolete.
The OpenID-based authentication method for Fedora web services provided by this crate no longer works.
There is currently no known replacement.
pub fn timeout(self, timeout: Duration) -> Self
Override the default request timeout duration.
Sourcepub fn user_agent(self, user_agent: &'a str) -> Self
👎Deprecated since 2.1.2: The “fedora” crate is obsolete.
The OpenID-based authentication method for Fedora web services provided by this crate no longer works.
There is currently no known replacement.
pub fn user_agent(self, user_agent: &'a str) -> Self
Override the default User-Agent header.
Sourcepub fn build(self) -> Session
👎Deprecated since 2.1.2: The “fedora” crate is obsolete.
The OpenID-based authentication method for Fedora web services provided by this crate no longer works.
There is currently no known replacement.
pub fn build(self) -> Session
This method consumes the AnonymousSessionBuilder and returns a Session with
custom timeout and User-Agent header settings.
Note: This method will panic if the network stack cannot be initialized.
Trait Implementations§
Source§impl<'a> Debug for AnonymousSessionBuilder<'a>
impl<'a> Debug for AnonymousSessionBuilder<'a>
Source§impl<'a> Default for AnonymousSessionBuilder<'a>
impl<'a> Default for AnonymousSessionBuilder<'a>
Source§fn default() -> AnonymousSessionBuilder<'a>
fn default() -> AnonymousSessionBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for AnonymousSessionBuilder<'a>
impl<'a> RefUnwindSafe for AnonymousSessionBuilder<'a>
impl<'a> Send for AnonymousSessionBuilder<'a>
impl<'a> Sync for AnonymousSessionBuilder<'a>
impl<'a> Unpin for AnonymousSessionBuilder<'a>
impl<'a> UnwindSafe for AnonymousSessionBuilder<'a>
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