pub struct FileDescriptionPacket {
pub file_id: FileId,
pub hash_full: [u8; 16],
pub hash_16k: [u8; 16],
pub file_length: u64,
pub filename: String,
pub par2_name: String,
}Expand description
Parsed File Description packet.
Fields§
§file_id: FileIdMD5-based file identifier: MD5(hash_16k || length || name).
hash_full: [u8; 16]MD5 of the entire file.
hash_16k: [u8; 16]MD5 of the first 16,384 bytes of the file.
file_length: u64File length in bytes.
filename: StringFilename (ASCII/UTF-8, without null terminator).
par2_name: StringOriginal PAR2 filename before filesystem-safe translation.
Implementations§
Trait Implementations§
Source§impl Clone for FileDescriptionPacket
impl Clone for FileDescriptionPacket
Source§fn clone(&self) -> FileDescriptionPacket
fn clone(&self) -> FileDescriptionPacket
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 moreAuto Trait Implementations§
impl Freeze for FileDescriptionPacket
impl RefUnwindSafe for FileDescriptionPacket
impl Send for FileDescriptionPacket
impl Sync for FileDescriptionPacket
impl Unpin for FileDescriptionPacket
impl UnsafeUnpin for FileDescriptionPacket
impl UnwindSafe for FileDescriptionPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more