Struct libcoap_sys::coap_block_b_t
source · #[repr(C)]pub struct coap_block_b_t {
pub num: c_uint,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub chunk_size: u32,
}
Fields§
§num: c_uint
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§chunk_size: u32
Implementations§
source§impl coap_block_b_t
impl coap_block_b_t
pub fn m(&self) -> c_uint
pub fn set_m(&mut self, val: c_uint)
pub fn szx(&self) -> c_uint
pub fn set_szx(&mut self, val: c_uint)
pub fn aszx(&self) -> c_uint
pub fn set_aszx(&mut self, val: c_uint)
pub fn defined(&self) -> c_uint
pub fn set_defined(&mut self, val: c_uint)
pub fn bert(&self) -> c_uint
pub fn set_bert(&mut self, val: c_uint)
pub fn new_bitfield_1( m: c_uint, szx: c_uint, aszx: c_uint, defined: c_uint, bert: c_uint ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
source§impl Clone for coap_block_b_t
impl Clone for coap_block_b_t
source§fn clone(&self) -> coap_block_b_t
fn clone(&self) -> coap_block_b_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for coap_block_b_t
impl Debug for coap_block_b_t
impl Copy for coap_block_b_t
Auto Trait Implementations§
impl RefUnwindSafe for coap_block_b_t
impl Send for coap_block_b_t
impl Sync for coap_block_b_t
impl Unpin for coap_block_b_t
impl UnwindSafe for coap_block_b_t
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