[−][src]Struct abxml::model::owned::package::PackageBuf
Fields
id: u32
package_name: String
inner_chunks: Vec<Box<dyn OwnedBuf>>
Methods
impl PackageBuf
[src]
pub fn create(id: u32, package_name: String) -> Result<Self, Error>
[src]
pub fn add_chunk(&mut self, chunk: Box<dyn OwnedBuf>)
[src]
Trait Implementations
impl OwnedBuf for PackageBuf
[src]
fn get_token(&self) -> u16
[src]
fn get_body_data(&self) -> Result<Vec<u8>, Error>
[src]
fn get_header(&self) -> Result<Vec<u8>, Error>
[src]
fn to_vec(&self) -> Result<Vec<u8>, Error>
[src]
Convert the given OwnedBuf
to a well formed chunk in form of vector of bytes
fn write_header(&self, buffer: &mut Vec<u8>, body: &[u8]) -> Result<(), Error>
[src]
Writes the header to the output buffer. It writes token, header size and chunk_size and then the data returned by get_header
. Read more
impl Default for PackageBuf
[src]
fn default() -> PackageBuf
[src]
impl Debug for PackageBuf
[src]
Auto Trait Implementations
impl Unpin for PackageBuf
impl !Sync for PackageBuf
impl !Send for PackageBuf
impl !UnwindSafe for PackageBuf
impl !RefUnwindSafe for PackageBuf
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,