pub struct Fragmenter { /* private fields */ }
Expand description
Fragments a MCTP message.
This is constructed from Stack::start_send()
Implementations§
Source§impl Fragmenter
impl Fragmenter
pub fn tag(&self) -> Tag
pub fn dest(&self) -> Eid
Sourcepub fn fragment<'f>(
&mut self,
payload: &[u8],
out: &'f mut [u8],
) -> SendOutput<'f>
pub fn fragment<'f>( &mut self, payload: &[u8], out: &'f mut [u8], ) -> SendOutput<'f>
Returns fragments for the MCTP payload
The same input message payload
should be passed to each fragment()
call.
In SendOutput::Packet(buf)
, out
is borrowed as the returned fragment, filled with packet contents.
pub fn is_done(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fragmenter
impl RefUnwindSafe for Fragmenter
impl Send for Fragmenter
impl Sync for Fragmenter
impl Unpin for Fragmenter
impl UnwindSafe for Fragmenter
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