struct FragmentSpan {
version: ProtocolVersion,
size: Option<usize>,
bounds: Range<usize>,
}
Fields§
§version: ProtocolVersion
version taken from containing message.
size: Option<usize>
size of the handshake message body (excluding header)
None
means the size is unknown, because bounds
is not
large enough to encompass a whole header.
bounds: Range<usize>
bounds of the handshake message, including header
Implementations§
Source§impl FragmentSpan
impl FragmentSpan
Sourcefn is_complete(&self) -> bool
fn is_complete(&self) -> bool
A FragmentSpan
is “complete” if its size is known, and its
bounds exactly encompasses one handshake message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FragmentSpan
impl RefUnwindSafe for FragmentSpan
impl Send for FragmentSpan
impl Sync for FragmentSpan
impl Unpin for FragmentSpan
impl UnwindSafe for FragmentSpan
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