pub struct Fragment<'a> {
pub frag_id: FragId,
pub index: usize,
pub count: usize,
pub chunk: &'a str,
}Expand description
One fragment message (§5.1), borrowing its chunk from the received text.
Fields§
§frag_id: FragIdThe reassembly this fragment belongs to.
index: usizePosition, 0 ≤ index < count.
count: usizeNumber of fragments in the frame, 2 ≤ count ≤ 64 syntactically; over 32 is discarded.
chunk: &'a strA piece of the envelope JSON text (valid UTF-8 by construction).
Trait Implementations§
impl<'a> Copy for Fragment<'a>
impl<'a> Eq for Fragment<'a>
impl<'a> StructuralPartialEq for Fragment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Fragment<'a>
impl<'a> RefUnwindSafe for Fragment<'a>
impl<'a> Send for Fragment<'a>
impl<'a> Sync for Fragment<'a>
impl<'a> Unpin for Fragment<'a>
impl<'a> UnsafeUnpin for Fragment<'a>
impl<'a> UnwindSafe for Fragment<'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