Struct celestia_types::InfoByte
source · pub struct InfoByte(/* private fields */);Expand description
The part of Share containing the version and sequence_start information.
InfoByte is a single byte with the following structure:
- the first 7 bits are reserved for version information in big endian form
- last bit is a
sequence_startflag. If it’s set then thisShareis a first of a sequence, otherwise it’s a continuation share.
Implementations§
Trait Implementations§
impl StructuralPartialEq for InfoByte
Auto Trait Implementations§
impl Freeze for InfoByte
impl RefUnwindSafe for InfoByte
impl Send for InfoByte
impl Sync for InfoByte
impl Unpin for InfoByte
impl UnwindSafe for InfoByte
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