pub enum RealtimeCloseReason {
Normal,
Cancel,
ProviderFailure,
PolicyDenial,
HostOwnedDetach,
}Expand description
Enumerates the finite realtime close reason cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Normal
Use this variant when the contract needs to represent normal; selecting it has no side effect by itself.
Cancel
Use this variant when the contract needs to represent cancel; selecting it has no side effect by itself.
ProviderFailure
Use this variant when the contract needs to represent provider failure; selecting it has no side effect by itself.
PolicyDenial
Use this variant when the contract needs to represent policy denial; selecting it has no side effect by itself.
HostOwnedDetach
Use this variant when the contract needs to represent host owned detach; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for RealtimeCloseReason
impl Clone for RealtimeCloseReason
Source§fn clone(&self) -> RealtimeCloseReason
fn clone(&self) -> RealtimeCloseReason
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 RealtimeCloseReason
impl Debug for RealtimeCloseReason
Source§impl<'de> Deserialize<'de> for RealtimeCloseReason
impl<'de> Deserialize<'de> for RealtimeCloseReason
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 PartialEq for RealtimeCloseReason
impl PartialEq for RealtimeCloseReason
Source§fn eq(&self, other: &RealtimeCloseReason) -> bool
fn eq(&self, other: &RealtimeCloseReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RealtimeCloseReason
impl Serialize for RealtimeCloseReason
impl Copy for RealtimeCloseReason
impl Eq for RealtimeCloseReason
impl StructuralPartialEq for RealtimeCloseReason
Auto Trait Implementations§
impl Freeze for RealtimeCloseReason
impl RefUnwindSafe for RealtimeCloseReason
impl Send for RealtimeCloseReason
impl Sync for RealtimeCloseReason
impl Unpin for RealtimeCloseReason
impl UnsafeUnpin for RealtimeCloseReason
impl UnwindSafe for RealtimeCloseReason
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