pub enum ReceiveFileResponses {
RcvFileAccepted(Arc<RcvFileAcceptedResponse>),
RcvFileAcceptedSndCancelled(Arc<RcvFileAcceptedSndCancelledResponse>),
}Variants§
RcvFileAccepted(Arc<RcvFileAcceptedResponse>)
RcvFileAccepted: File accepted to be received.
RcvFileAcceptedSndCancelled(Arc<RcvFileAcceptedSndCancelledResponse>)
RcvFileAcceptedSndCancelled: File accepted, but no longer sent.
Implementations§
Source§impl ReceiveFileResponses
impl ReceiveFileResponses
pub fn rcv_file_accepted(&self) -> Option<&RcvFileAcceptedResponse>
pub fn rcv_file_accepted_snd_cancelled( &self, ) -> Option<&RcvFileAcceptedSndCancelledResponse>
Trait Implementations§
Source§impl Clone for ReceiveFileResponses
impl Clone for ReceiveFileResponses
Source§fn clone(&self) -> ReceiveFileResponses
fn clone(&self) -> ReceiveFileResponses
Returns a duplicate 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 ReceiveFileResponses
impl Debug for ReceiveFileResponses
Source§impl<'de> Deserialize<'de> for ReceiveFileResponses
impl<'de> Deserialize<'de> for ReceiveFileResponses
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 ReceiveFileResponses
impl PartialEq for ReceiveFileResponses
Source§impl Serialize for ReceiveFileResponses
impl Serialize for ReceiveFileResponses
impl StructuralPartialEq for ReceiveFileResponses
Auto Trait Implementations§
impl Freeze for ReceiveFileResponses
impl RefUnwindSafe for ReceiveFileResponses
impl Send for ReceiveFileResponses
impl Sync for ReceiveFileResponses
impl Unpin for ReceiveFileResponses
impl UnwindSafe for ReceiveFileResponses
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