pub struct SipTransferError {
pub transfer_id: String,
pub reason: i32,
pub sip_status: Option<SipStatus>,
}Expand description
Details of a failed SIP transfer, attached to the error.
Fields§
§transfer_id: String§reason: i32§sip_status: Option<SipStatus>Set when the outcome was reported by a SIP response.
Implementations§
Source§impl SipTransferError
impl SipTransferError
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§
Source§impl Clone for SipTransferError
impl Clone for SipTransferError
Source§impl Debug for SipTransferError
impl Debug for SipTransferError
Source§impl Default for SipTransferError
impl Default for SipTransferError
§impl<'de> Deserialize<'de> for SipTransferError
impl<'de> Deserialize<'de> for SipTransferError
§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 SipTransferError
Source§impl Hash for SipTransferError
impl Hash for SipTransferError
Source§impl Message for SipTransferError
impl Message for SipTransferError
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.Source§impl PartialEq for SipTransferError
impl PartialEq for SipTransferError
§impl Serialize for SipTransferError
impl Serialize for SipTransferError
impl StructuralPartialEq for SipTransferError
Auto Trait Implementations§
impl Freeze for SipTransferError
impl RefUnwindSafe for SipTransferError
impl Send for SipTransferError
impl Sync for SipTransferError
impl Unpin for SipTransferError
impl UnsafeUnpin for SipTransferError
impl UnwindSafe for SipTransferError
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