pub struct FileProgress {
pub length: u64,
pub phase: FilePhase,
}Fields§
§length: u64§phase: FilePhaseTrait Implementations§
Source§impl Clone for FileProgress
impl Clone for FileProgress
impl Copy for FileProgress
Source§impl Debug for FileProgress
impl Debug for FileProgress
Source§impl Described for FileProgress
impl Described for FileProgress
Source§impl<'de> Deserialize<'de> for FileProgress
impl<'de> Deserialize<'de> for FileProgress
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
impl Eq for FileProgress
Source§impl MemorySize for FileProgress
impl MemorySize for FileProgress
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl PartialEq for FileProgress
impl PartialEq for FileProgress
Source§impl Serialize for FileProgress
impl Serialize for FileProgress
impl StructuralPartialEq for FileProgress
Source§impl Value for FileProgress
impl Value for FileProgress
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut PostcardReader<'_>) -> Result<usize, MessageError>
fn read(input: &mut PostcardReader<'_>) -> Result<Self, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for FileProgress
impl RefUnwindSafe for FileProgress
impl Send for FileProgress
impl Sync for FileProgress
impl Unpin for FileProgress
impl UnsafeUnpin for FileProgress
impl UnwindSafe for FileProgress
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