pub struct Body { /* private fields */ }Expand description
The body of a message: the bytes after the message header, kept with their offset in the message so that CDR alignment is preserved.
The bytes are shared with the buffer the message was read into, not copied: cloning a body is cheap.
Implementations§
Source§impl Body
impl Body
Sourcepub fn byte_order(&self) -> ByteOrder
pub fn byte_order(&self) -> ByteOrder
Byte order of the body.
Sourcepub fn segments(&self) -> &[Segment]
pub fn segments(&self) -> &[Segment]
Where the alignment restarts inside the body: one segment for each
fragment after the first in a message joined by a
FragmentAssembler, empty otherwise.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Body
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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