pub enum FileSendRecvTree {
File {
name: String,
skip: u64,
size: u64,
},
Dir {
name: String,
files: Vec<FileSendRecvTree>,
},
}Expand description
Tree structure that represents the files that are being sent/received
Variants§
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for FileSendRecvTree
impl<'__de, __Context> BorrowDecode<'__de, __Context> for FileSendRecvTree
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for FileSendRecvTree
impl Clone for FileSendRecvTree
Source§fn clone(&self) -> FileSendRecvTree
fn clone(&self) -> FileSendRecvTree
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 FileSendRecvTree
impl Debug for FileSendRecvTree
Source§impl<__Context> Decode<__Context> for FileSendRecvTree
impl<__Context> Decode<__Context> for FileSendRecvTree
Source§impl Encode for FileSendRecvTree
impl Encode for FileSendRecvTree
Source§impl Hash for FileSendRecvTree
impl Hash for FileSendRecvTree
Source§impl PartialEq for FileSendRecvTree
impl PartialEq for FileSendRecvTree
impl StructuralPartialEq for FileSendRecvTree
Auto Trait Implementations§
impl Freeze for FileSendRecvTree
impl RefUnwindSafe for FileSendRecvTree
impl Send for FileSendRecvTree
impl Sync for FileSendRecvTree
impl Unpin for FileSendRecvTree
impl UnwindSafe for FileSendRecvTree
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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