pub enum Body<'a> {
Records(Records<'a>),
Encrypted(Encrypted<'a>),
ApplicationError(&'a [u8]),
Alarm(&'a [u8]),
Empty,
Compact(Compact<'a>),
Format(Format<'a>),
Fragment(&'a [u8]),
}Expand description
The payload after the transport header.
Variants§
Records(Records<'a>)
Data records.
Encrypted(Encrypted<'a>)
An encrypted layer; open it with Encrypted::decrypt (feature oms).
ApplicationError(&'a [u8])
An application error (CI 6E–70): the error code bytes (OMS Vol. 2 Table 40:
01 CI error, 03 too many records, 08 busy, …).
Alarm(&'a [u8])
An alarm (CI 71, 74, 75): the alarm status bytes.
Empty
A transport layer without application data (CI 80, 8A, 8B): an ACK, an
access demand or a request.
Compact(Compact<'a>)
A compact frame (CI 79, 7B, 73): values only; expand it with the layout of
an earlier full frame (Compact::expand).
Format(Format<'a>)
A format frame (CI 69, 6A, 6B): a record layout for compact frames.
Fragment(&'a [u8])
One fragment of a longer message (AFL fragment ID not 0): the bytes after the AFL,
a piece of the transport layer. Join them with
Reassembly.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Body<'a>
impl<'a> Freeze for Body<'a>
impl<'a> Move for Body<'a>
impl<'a> RefUnwindSafe for Body<'a>
impl<'a> Send for Body<'a>
impl<'a> Sync for Body<'a>
impl<'a> Unpin for Body<'a>
impl<'a> UnsafeUnpin for Body<'a>where
&'a [u8]: UnsafeUnpin,
impl<'a> UnwindSafe for Body<'a>where
&'a [u8]: UnwindSafe,
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