pub struct BoxHeader {
pub kind: BoxType,
pub size: u64,
}Fields§
§kind: BoxType§size: u64Implementations§
Source§impl BoxHeader
impl BoxHeader
pub fn new(name: BoxType, size: u64) -> Self
pub fn read_sync<'a>( reader: &mut impl Reader<'a>, offset: &mut u64, ) -> Result<Option<Self>, Error>
pub async fn read<R: AsyncRead + Unpin>( reader: &mut R, offset: &mut u64, ) -> Result<Option<Self>, Error>
pub fn write<W: Write>(&self, writer: &mut W) -> Result<u64, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxHeader
impl RefUnwindSafe for BoxHeader
impl Send for BoxHeader
impl Sync for BoxHeader
impl Unpin for BoxHeader
impl UnwindSafe for BoxHeader
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