pub struct FileMessage<'a> {
pub object_key: &'a [u8],
pub content_size: u64,
pub object_info_extra: &'a [u8],
pub service_context: &'a [u8],
pub content: &'a [u8],
}Expand description
BIOP::FileMessage — TR 101 202 §4.7.4.2, Table 4.10.
objectInfo_length ≥ 8; the first 8 bytes of objectInfo are the
DSM::File::ContentSize (64-bit big-endian).
Fields§
§object_key: &'a [u8]objectKey_data.
content_size: u64DSM::File::ContentSize from the first 8 bytes of objectInfo.
object_info_extra: &'a [u8]Remaining objectInfo bytes after the 8-byte ContentSize.
service_context: &'a [u8]Raw serviceContextList bytes.
content: &'a [u8]File content bytes.
Implementations§
Source§impl<'a> FileMessage<'a>
impl<'a> FileMessage<'a>
Sourcepub fn serialized_len_total(&self) -> usize
pub fn serialized_len_total(&self) -> usize
Total serialized length including the 12-byte BIOP header.
Trait Implementations§
Source§impl<'a> Clone for FileMessage<'a>
impl<'a> Clone for FileMessage<'a>
Source§fn clone(&self) -> FileMessage<'a>
fn clone(&self) -> FileMessage<'a>
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<'a> Debug for FileMessage<'a>
impl<'a> Debug for FileMessage<'a>
impl<'a> Eq for FileMessage<'a>
Source§impl<'a> PartialEq for FileMessage<'a>
impl<'a> PartialEq for FileMessage<'a>
Source§fn eq(&self, other: &FileMessage<'a>) -> bool
fn eq(&self, other: &FileMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for FileMessage<'a>
impl<'a> Serialize for FileMessage<'a>
impl<'a> StructuralPartialEq for FileMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for FileMessage<'a>
impl<'a> RefUnwindSafe for FileMessage<'a>
impl<'a> Send for FileMessage<'a>
impl<'a> Sync for FileMessage<'a>
impl<'a> Unpin for FileMessage<'a>
impl<'a> UnsafeUnpin for FileMessage<'a>
impl<'a> UnwindSafe for FileMessage<'a>
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