[][src]Struct libcoap_sys::coap_block_t

#[repr(C)]
pub struct coap_block_t {
    pub num: c_uint,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: [u8; 3],
}

Structure of Block options.

Fields

num: c_uint

< block number

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: [u8; 3]

Methods

impl coap_block_t[src]

pub fn m(&self) -> c_uint[src]

pub fn set_m(&mut self, val: c_uint)[src]

pub fn szx(&self) -> c_uint[src]

pub fn set_szx(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    m: c_uint,
    szx: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for coap_block_t[src]

impl Copy for coap_block_t[src]

impl Debug for coap_block_t[src]

Auto Trait Implementations

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.