Struct UpgradableRequired
pub struct UpgradableRequired<T>(pub Option<T>)
where
T: MaybeReadable;
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§
§impl<T> MaybeReadable for UpgradableRequired<T>where
T: MaybeReadable,
impl<T> MaybeReadable for UpgradableRequired<T>where
T: MaybeReadable,
§fn read<R>(reader: &mut R) -> Result<Option<UpgradableRequired<T>>, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<Option<UpgradableRequired<T>>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request