pub struct Header { /* private fields */ }
Expand description
Header represents the Vortex packet header.
Implementations§
Source§impl Header
Header implements the Header functions.
impl Header
Header implements the Header functions.
Sourcepub fn new_download_piece() -> Self
pub fn new_download_piece() -> Self
new_download_piece creates a new Vortex packet header for download piece request.
Sourcepub fn new_piece_content(value_length: u32) -> Self
pub fn new_piece_content(value_length: u32) -> Self
new_piece_content creates a new Vortex packet header for piece content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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