pub struct UpgradableRequired<T: MaybeReadable>(pub Option<T>);Expand description
Wrapper to read a required (non-optional) TLV record that may have been upgraded without backwards compat.
This is not exported to bindings users as manual TLV building is not currently supported in bindings
Tuple Fields§
§0: Option<T>Trait Implementations§
Source§impl<T: MaybeReadable> MaybeReadable for UpgradableRequired<T>
impl<T: MaybeReadable> MaybeReadable for UpgradableRequired<T>
Auto Trait Implementations§
impl<T> Freeze for UpgradableRequired<T>where
T: Freeze,
impl<T> RefUnwindSafe for UpgradableRequired<T>where
T: RefUnwindSafe,
impl<T> Send for UpgradableRequired<T>where
T: Send,
impl<T> Sync for UpgradableRequired<T>where
T: Sync,
impl<T> Unpin for UpgradableRequired<T>where
T: Unpin,
impl<T> UnwindSafe for UpgradableRequired<T>where
T: UnwindSafe,
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