pub struct TransferSipParticipantResponse {
pub transfer_id: String,
pub status: i32,
pub reason: i32,
pub sip_status: Option<SipStatus>,
}Expand description
Added in https://github.com/livekit/protocol/pull/1730. Not needed after all: will be rolled back to an empty message once STR_CALL_ENDED is reported as an error like every other failed transfer.
Fields§
§transfer_id: String§status: i32§reason: i32§sip_status: Option<SipStatus>Set when the outcome was reported by a SIP response.
Implementations§
Source§impl TransferSipParticipantResponse
impl TransferSipParticipantResponse
Sourcepub fn status(&self) -> SipTransferStatus
pub fn status(&self) -> SipTransferStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: SipTransferStatus)
pub fn set_status(&mut self, value: SipTransferStatus)
Sets status to the provided enum value.
Sourcepub fn reason(&self) -> SipTransferReason
pub fn reason(&self) -> SipTransferReason
Returns the enum value of reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: SipTransferReason)
pub fn set_reason(&mut self, value: SipTransferReason)
Sets reason to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for TransferSipParticipantResponse
impl<'de> Deserialize<'de> for TransferSipParticipantResponse
§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
impl Eq for TransferSipParticipantResponse
Source§impl Message for TransferSipParticipantResponse
impl Message for TransferSipParticipantResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.§impl Serialize for TransferSipParticipantResponse
impl Serialize for TransferSipParticipantResponse
impl StructuralPartialEq for TransferSipParticipantResponse
Auto Trait Implementations§
impl Freeze for TransferSipParticipantResponse
impl RefUnwindSafe for TransferSipParticipantResponse
impl Send for TransferSipParticipantResponse
impl Sync for TransferSipParticipantResponse
impl Unpin for TransferSipParticipantResponse
impl UnsafeUnpin for TransferSipParticipantResponse
impl UnwindSafe for TransferSipParticipantResponse
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