#[repr(i32)]pub enum SipCallStatus {
ScsCallIncoming = 0,
ScsParticipantJoined = 1,
ScsActive = 2,
ScsDisconnected = 3,
ScsError = 4,
}
Variants§
ScsCallIncoming = 0
Incoming call is being handled by the SIP service. The SIP participant hasn’t joined a LiveKit room yet
ScsParticipantJoined = 1
SIP participant for outgoing call has been created. The SIP outgoing call is being established
ScsActive = 2
Call is ongoing. SIP participant is active in the LiveKit room
ScsDisconnected = 3
Call has ended
ScsError = 4
Call has ended or never succeeded because of an error
Implementations§
Source§impl SipCallStatus
impl SipCallStatus
Source§impl SipCallStatus
impl SipCallStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SipCallStatus
impl Clone for SipCallStatus
Source§fn clone(&self) -> SipCallStatus
fn clone(&self) -> SipCallStatus
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 SipCallStatus
impl Debug for SipCallStatus
Source§impl Default for SipCallStatus
impl Default for SipCallStatus
Source§fn default() -> SipCallStatus
fn default() -> SipCallStatus
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SipCallStatus
impl<'de> Deserialize<'de> for SipCallStatus
§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 From<SipCallStatus> for i32
impl From<SipCallStatus> for i32
Source§fn from(value: SipCallStatus) -> i32
fn from(value: SipCallStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for SipCallStatus
impl Hash for SipCallStatus
Source§impl Ord for SipCallStatus
impl Ord for SipCallStatus
Source§fn cmp(&self, other: &SipCallStatus) -> Ordering
fn cmp(&self, other: &SipCallStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SipCallStatus
impl PartialEq for SipCallStatus
Source§impl PartialOrd for SipCallStatus
impl PartialOrd for SipCallStatus
§impl Serialize for SipCallStatus
impl Serialize for SipCallStatus
Source§impl TryFrom<i32> for SipCallStatus
impl TryFrom<i32> for SipCallStatus
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SipCallStatus, DecodeError>
fn try_from(value: i32) -> Result<SipCallStatus, DecodeError>
Performs the conversion.
impl Copy for SipCallStatus
impl Eq for SipCallStatus
impl StructuralPartialEq for SipCallStatus
Auto Trait Implementations§
impl Freeze for SipCallStatus
impl RefUnwindSafe for SipCallStatus
impl Send for SipCallStatus
impl Sync for SipCallStatus
impl Unpin for SipCallStatus
impl UnwindSafe for SipCallStatus
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