pub struct BlobHeader {
pub _type: String,
pub indexdata: Vec<u8>,
pub datasize: u64,
}Expand description
A file contains an sequence of fileblock headers, each prefixed by their length in network byte order, followed by a data block containing the actual data. Types starting with a “_” are reserved. example: { type: ‘OSMHeader’, indexdata: null, datasize: 173 }
Fields§
§_type: StringThe type of the blob
indexdata: Vec<u8>The index data
datasize: u64The size of the data
Trait Implementations§
Source§impl Debug for BlobHeader
impl Debug for BlobHeader
Source§impl Default for BlobHeader
impl Default for BlobHeader
Source§fn default() -> BlobHeader
fn default() -> BlobHeader
Returns the “default value” for a type. Read more
Source§impl ProtoRead for BlobHeader
Read in the contents of the blob header
impl ProtoRead for BlobHeader
Read in the contents of the blob header
Auto Trait Implementations§
impl Freeze for BlobHeader
impl RefUnwindSafe for BlobHeader
impl Send for BlobHeader
impl Sync for BlobHeader
impl Unpin for BlobHeader
impl UnwindSafe for BlobHeader
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().