pub struct AutoCloseType(/* private fields */);Expand description
What happens when a room’s session ends.
This rides on every Room response, so it is an open string newtype: a
closed enum would fail to deserialize — taking the whole room with it —
the moment the API adds a value this SDK predates.
Implementations§
Source§impl AutoCloseType
impl AutoCloseType
Sourcepub const SESSION_ENDS: Self
pub const SESSION_ENDS: Self
End the session. The default.
Sourcepub const SESSION_END_AND_DEACTIVATE: Self
pub const SESSION_END_AND_DEACTIVATE: Self
End the session and deactivate the room.
Trait Implementations§
Source§impl AsRef<str> for AutoCloseType
impl AsRef<str> for AutoCloseType
Source§impl Clone for AutoCloseType
impl Clone for AutoCloseType
Source§fn clone(&self) -> AutoCloseType
fn clone(&self) -> AutoCloseType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutoCloseType
impl Debug for AutoCloseType
Source§impl<'de> Deserialize<'de> for AutoCloseType
impl<'de> Deserialize<'de> for AutoCloseType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AutoCloseType
impl Display for AutoCloseType
impl Eq for AutoCloseType
Source§impl From<&str> for AutoCloseType
impl From<&str> for AutoCloseType
Source§impl From<String> for AutoCloseType
impl From<String> for AutoCloseType
Source§impl Hash for AutoCloseType
impl Hash for AutoCloseType
Source§impl PartialEq for AutoCloseType
impl PartialEq for AutoCloseType
Source§impl Serialize for AutoCloseType
impl Serialize for AutoCloseType
impl StructuralPartialEq for AutoCloseType
Auto Trait Implementations§
impl Freeze for AutoCloseType
impl RefUnwindSafe for AutoCloseType
impl Send for AutoCloseType
impl Sync for AutoCloseType
impl Unpin for AutoCloseType
impl UnsafeUnpin for AutoCloseType
impl UnwindSafe for AutoCloseType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.