#[non_exhaustive]pub enum ConnStatus {
New,
Prepared,
Joined,
Requested,
Accepted,
SndReady,
Ready,
Deleted,
Failed {
conn_error: String,
undocumented: JsonObject,
},
Undocumented(JsonObject),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ConnStatus
impl ConnStatus
pub fn make_new() -> Self
pub fn make_prepared() -> Self
pub fn make_joined() -> Self
pub fn make_requested() -> Self
pub fn make_accepted() -> Self
pub fn make_snd_ready() -> Self
pub fn make_ready() -> Self
pub fn make_deleted() -> Self
pub fn make_failed(conn_error: String) -> Self
Source§impl ConnStatus
impl ConnStatus
pub fn is_new(&self) -> bool
pub fn is_prepared(&self) -> bool
pub fn is_joined(&self) -> bool
pub fn is_requested(&self) -> bool
pub fn is_accepted(&self) -> bool
pub fn is_snd_ready(&self) -> bool
pub fn is_ready(&self) -> bool
pub fn is_deleted(&self) -> bool
pub fn failed(&self) -> Option<&String>
Trait Implementations§
Source§impl Clone for ConnStatus
impl Clone for ConnStatus
Source§fn clone(&self) -> ConnStatus
fn clone(&self) -> ConnStatus
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 ConnStatus
impl Debug for ConnStatus
Source§impl<'de> Deserialize<'de> for ConnStatus
impl<'de> Deserialize<'de> for ConnStatus
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 ConnStatus
impl PartialEq for ConnStatus
Source§fn eq(&self, other: &ConnStatus) -> bool
fn eq(&self, other: &ConnStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConnStatus
impl Serialize for ConnStatus
impl StructuralPartialEq for ConnStatus
Auto Trait Implementations§
impl Freeze for ConnStatus
impl RefUnwindSafe for ConnStatus
impl Send for ConnStatus
impl Sync for ConnStatus
impl Unpin for ConnStatus
impl UnsafeUnpin for ConnStatus
impl UnwindSafe for ConnStatus
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