pub struct FileDataPDU(pub UnsegmentedFileData);Expand description
A holder for both possible types of File data PDUs.
Tuple Fields§
§0: UnsegmentedFileDataTrait Implementations§
Source§impl Clone for FileDataPDU
impl Clone for FileDataPDU
Source§fn clone(&self) -> FileDataPDU
fn clone(&self) -> FileDataPDU
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 FileDataPDU
impl Debug for FileDataPDU
impl Eq for FileDataPDU
Source§impl PartialEq for FileDataPDU
impl PartialEq for FileDataPDU
Source§impl SegmentEncode for FileDataPDU
impl SegmentEncode for FileDataPDU
type PDUType = FileDataPDU
Source§fn encoded_len(&self, file_size_flag: FileSizeFlag) -> u16
fn encoded_len(&self, file_size_flag: FileSizeFlag) -> u16
Gets the encoded length must fit in a u16 for PDUs
Source§fn decode<T: Read>(
buffer: &mut T,
segmentation_flag: SegmentedData,
file_size_flag: FileSizeFlag,
) -> PDUResult<Self::PDUType>
fn decode<T: Read>( buffer: &mut T, segmentation_flag: SegmentedData, file_size_flag: FileSizeFlag, ) -> PDUResult<Self::PDUType>
Attempts to decode a PDU from a byte stream
impl StructuralPartialEq for FileDataPDU
Auto Trait Implementations§
impl Freeze for FileDataPDU
impl RefUnwindSafe for FileDataPDU
impl Send for FileDataPDU
impl Sync for FileDataPDU
impl Unpin for FileDataPDU
impl UnsafeUnpin for FileDataPDU
impl UnwindSafe for FileDataPDU
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