Struct retina::client::SessionOptions
source · pub struct SessionOptions { /* private fields */ }
Expand description
Options which must be known right as a session is created.
Decisions which can be deferred are in SetupOptions
or PlayOptions
instead.
Implementations§
source§impl SessionOptions
impl SessionOptions
sourcepub fn creds(self, creds: Option<Credentials>) -> Self
pub fn creds(self, creds: Option<Credentials>) -> Self
Uses the given credentials when/if the server requests digest authentication.
sourcepub fn user_agent(self, user_agent: String) -> Self
pub fn user_agent(self, user_agent: String) -> Self
Sends the given user agent string with each request.
pub fn session_group(self, session_group: Arc<SessionGroup>) -> Self
pub fn teardown(self, teardown: TeardownPolicy) -> Self
pub fn unassigned_channel_data( self, policy: UnassignedChannelDataPolicy ) -> Self
pub fn session_id(self, policy: SessionIdPolicy) -> Self
Trait Implementations§
source§impl Default for SessionOptions
impl Default for SessionOptions
source§fn default() -> SessionOptions
fn default() -> SessionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnwindSafe for SessionOptions
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