[][src]Struct ptlv::tlv::TlvBox

pub struct TlvBox { /* fields omitted */ }

Implementations

impl TlvBox[src]

pub fn new() -> TlvBox[src]

pub fn parse(buffer: Bytes, offset: i32, length: usize) -> TlvBox[src]

pub fn put_i16_value(&mut self, typ: i32, value: i16)[src]

pub fn put_i32_value(&mut self, typ: i32, value: i32)[src]

pub fn put_i64_value(&mut self, typ: i32, value: i64)[src]

pub fn put_f32_value(&mut self, typ: i32, value: f32)[src]

pub fn put_f64_value(&mut self, typ: i32, value: f64)[src]

pub fn put_string_value(&mut self, typ: i32, value: String)[src]

pub fn put_object_value(&mut self, typ: i32, value: TlvBox)[src]

pub fn put_bytes_value(&mut self, typ: i32, value: Bytes)[src]

pub fn serialize(&mut self) -> Bytes[src]

pub fn get_bytes_value(&self, typ: i32) -> Option<Bytes>[src]

pub fn get_i16_value(&self, typ: i32) -> Option<i16>[src]

pub fn get_i32_value(&self, typ: i32) -> Option<i32>[src]

pub fn get_i64_value(&self, typ: i32) -> Option<i64>[src]

pub fn get_f32_value(&self, typ: i32) -> Option<f32>[src]

pub fn get_f64_value(&self, typ: i32) -> Option<f64>[src]

pub fn get_string_value(&self, typ: i32) -> Option<String>[src]

pub fn get_object_value(&self, typ: i32) -> Option<TlvBox>[src]

Trait Implementations

impl Clone for TlvBox[src]

Auto Trait Implementations

impl RefUnwindSafe for TlvBox

impl Send for TlvBox

impl Sync for TlvBox

impl Unpin for TlvBox

impl UnwindSafe for TlvBox

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.