Enum retina::client::SessionIdPolicy
source · pub enum SessionIdPolicy {
Default,
RequireMatch,
UseFirst,
}
Expand description
Policy for handling the session ID returned by the server in response to
SETUP
requests.
Variants§
Default
Default policy: currently RequireMatch
.
RequireMatch
Requires the server to return the same session ID for all SETUP
requests in the session.
UseFirst
Uses the session ID returned from the first SETUP
request and ignores
any subsequent changes. Required for some broken cameras.
Trait Implementations§
source§impl Clone for SessionIdPolicy
impl Clone for SessionIdPolicy
source§fn clone(&self) -> SessionIdPolicy
fn clone(&self) -> SessionIdPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionIdPolicy
impl Debug for SessionIdPolicy
source§impl Default for SessionIdPolicy
impl Default for SessionIdPolicy
source§fn default() -> SessionIdPolicy
fn default() -> SessionIdPolicy
Returns the “default value” for a type. Read more
source§impl Display for SessionIdPolicy
impl Display for SessionIdPolicy
source§impl FromStr for SessionIdPolicy
impl FromStr for SessionIdPolicy
impl Copy for SessionIdPolicy
Auto Trait Implementations§
impl Freeze for SessionIdPolicy
impl RefUnwindSafe for SessionIdPolicy
impl Send for SessionIdPolicy
impl Sync for SessionIdPolicy
impl Unpin for SessionIdPolicy
impl UnwindSafe for SessionIdPolicy
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