pub struct IesUpdater { /* private fields */ }
Implementations§
Source§impl IesUpdater
impl IesUpdater
pub fn new(ies: Vec<u8>) -> Self
Sourcepub fn set(&mut self, ie_type: IeType, ie_content: &[u8]) -> Result<(), Error>
pub fn set(&mut self, ie_type: IeType, ie_content: &[u8]) -> Result<(), Error>
Set an IE with the corresponding ie_type
, replacing any existing entry with the same type.
The IE is rejected if it’s too large.
Sourcepub fn set_raw(&mut self, ie: &[u8]) -> Result<(), Error>
pub fn set_raw(&mut self, ie: &[u8]) -> Result<(), Error>
Set the raw IE (including the IE header). The IE is rejected if the IE’s length field (denoted by the second byte) is larger than the length of the remaining IE bytes, and truncated if it’s less than.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IesUpdater
impl RefUnwindSafe for IesUpdater
impl Send for IesUpdater
impl Sync for IesUpdater
impl Unpin for IesUpdater
impl UnwindSafe for IesUpdater
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