#[non_exhaustive]pub enum CIFileStatus {
Show 16 variants
SndStored,
SndTransfer {
snd_progress: i64,
snd_total: i64,
undocumented: JsonObject,
},
SndCancelled,
SndComplete,
SndError {
snd_file_error: FileError,
undocumented: JsonObject,
},
SndWarning {
snd_file_error: FileError,
undocumented: JsonObject,
},
RcvInvitation,
RcvAccepted,
RcvTransfer {
rcv_progress: i64,
rcv_total: i64,
undocumented: JsonObject,
},
RcvAborted,
RcvComplete,
RcvCancelled,
RcvError {
rcv_file_error: FileError,
undocumented: JsonObject,
},
RcvWarning {
rcv_file_error: FileError,
undocumented: JsonObject,
},
Invalid {
text: 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.
SndStored
SndTransfer
SndCancelled
SndComplete
SndError
SndWarning
RcvInvitation
RcvAccepted
RcvTransfer
RcvAborted
RcvComplete
RcvCancelled
RcvError
RcvWarning
Invalid
Undocumented(JsonObject)
Implementations§
Source§impl CIFileStatus
impl CIFileStatus
pub fn make_snd_stored() -> Self
pub fn make_snd_transfer(snd_progress: i64, snd_total: i64) -> Self
pub fn make_snd_cancelled() -> Self
pub fn make_snd_complete() -> Self
pub fn make_snd_error(snd_file_error: FileError) -> Self
pub fn make_snd_warning(snd_file_error: FileError) -> Self
pub fn make_rcv_invitation() -> Self
pub fn make_rcv_accepted() -> Self
pub fn make_rcv_transfer(rcv_progress: i64, rcv_total: i64) -> Self
pub fn make_rcv_aborted() -> Self
pub fn make_rcv_complete() -> Self
pub fn make_rcv_cancelled() -> Self
pub fn make_rcv_error(rcv_file_error: FileError) -> Self
pub fn make_rcv_warning(rcv_file_error: FileError) -> Self
pub fn make_invalid(text: String) -> Self
Source§impl CIFileStatus
impl CIFileStatus
pub fn is_snd_stored(&self) -> bool
pub fn snd_transfer(&self) -> Option<CIFileStatusSndTransferRef<'_>>
pub fn is_snd_cancelled(&self) -> bool
pub fn is_snd_complete(&self) -> bool
pub fn snd_error(&self) -> Option<&FileError>
pub fn snd_warning(&self) -> Option<&FileError>
pub fn is_rcv_invitation(&self) -> bool
pub fn is_rcv_accepted(&self) -> bool
pub fn rcv_transfer(&self) -> Option<CIFileStatusRcvTransferRef<'_>>
pub fn is_rcv_aborted(&self) -> bool
pub fn is_rcv_complete(&self) -> bool
pub fn is_rcv_cancelled(&self) -> bool
pub fn rcv_error(&self) -> Option<&FileError>
pub fn rcv_warning(&self) -> Option<&FileError>
pub fn invalid(&self) -> Option<&String>
Trait Implementations§
Source§impl Clone for CIFileStatus
impl Clone for CIFileStatus
Source§fn clone(&self) -> CIFileStatus
fn clone(&self) -> CIFileStatus
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 CIFileStatus
impl Debug for CIFileStatus
Source§impl<'de> Deserialize<'de> for CIFileStatus
impl<'de> Deserialize<'de> for CIFileStatus
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 CIFileStatus
impl PartialEq for CIFileStatus
Source§fn eq(&self, other: &CIFileStatus) -> bool
fn eq(&self, other: &CIFileStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CIFileStatus
impl Serialize for CIFileStatus
impl StructuralPartialEq for CIFileStatus
Auto Trait Implementations§
impl Freeze for CIFileStatus
impl RefUnwindSafe for CIFileStatus
impl Send for CIFileStatus
impl Sync for CIFileStatus
impl Unpin for CIFileStatus
impl UnsafeUnpin for CIFileStatus
impl UnwindSafe for CIFileStatus
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