pub struct OscoreConf { /* private fields */ }
Expand description
Represents an oscore config object which stores the underlying coap_oscore_conf_t C struct.
Implementations§
Source§impl OscoreConf
impl OscoreConf
Sourcepub fn new(
seq_initial: u64,
oscore_conf_bytes: &[u8],
save_seq_num_func: extern "C" fn(seq_num: u64, _param: *mut c_void) -> i32,
) -> Result<Self, OscoreConfigError>
pub fn new( seq_initial: u64, oscore_conf_bytes: &[u8], save_seq_num_func: extern "C" fn(seq_num: u64, _param: *mut c_void) -> i32, ) -> Result<Self, OscoreConfigError>
Creates a new OscoreConf.
§Errors
Will return a OscoreConfigError if creating the oscore config fails (most likely due to invalid oscore config bytes provided).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OscoreConf
impl RefUnwindSafe for OscoreConf
impl !Send for OscoreConf
impl !Sync for OscoreConf
impl Unpin for OscoreConf
impl UnwindSafe for OscoreConf
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