Struct WithoutLength
pub struct WithoutLength<T>(pub T);
Expand description
A type for variable-length values within TLV record where the length is encoded as part of the record. Used to prevent encoding the length twice.
This is not exported to bindings users as manual TLV building is not currently supported in bindings
Tuple Fields§
§0: T
Trait Implementations§
§impl<'a> From<&'a String> for WithoutLength<&'a String>
impl<'a> From<&'a String> for WithoutLength<&'a String>
§fn from(s: &'a String) -> WithoutLength<&'a String>
fn from(s: &'a String) -> WithoutLength<&'a String>
Converts to this type from the input type.
§impl<'a, T> From<&'a Vec<T>> for WithoutLength<&'a Vec<T>>
impl<'a, T> From<&'a Vec<T>> for WithoutLength<&'a Vec<T>>
§fn from(v: &'a Vec<T>) -> WithoutLength<&'a Vec<T>>
fn from(v: &'a Vec<T>) -> WithoutLength<&'a Vec<T>>
Converts to this type from the input type.
§impl<T> Readable for WithoutLength<Features<T>>where
T: Context,
impl<T> Readable for WithoutLength<Features<T>>where
T: Context,
§fn read<R>(r: &mut R) -> Result<WithoutLength<Features<T>>, DecodeError>where
R: Read,
fn read<R>(r: &mut R) -> Result<WithoutLength<Features<T>>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl Readable for WithoutLength<Script>
impl Readable for WithoutLength<Script>
§fn read<R>(r: &mut R) -> Result<WithoutLength<Script>, DecodeError>where
R: Read,
fn read<R>(r: &mut R) -> Result<WithoutLength<Script>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl Readable for WithoutLength<String>
impl Readable for WithoutLength<String>
§fn read<R>(r: &mut R) -> Result<WithoutLength<String>, DecodeError>where
R: Read,
fn read<R>(r: &mut R) -> Result<WithoutLength<String>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl Readable for WithoutLength<UntrustedString>
impl Readable for WithoutLength<UntrustedString>
§fn read<R>(r: &mut R) -> Result<WithoutLength<UntrustedString>, DecodeError>where
R: Read,
fn read<R>(r: &mut R) -> Result<WithoutLength<UntrustedString>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl<T> Readable for WithoutLength<Vec<T>>where
T: MaybeReadable,
impl<T> Readable for WithoutLength<Vec<T>>where
T: MaybeReadable,
§fn read<R>(reader: &mut R) -> Result<WithoutLength<Vec<T>>, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<WithoutLength<Vec<T>>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl<T> Writeable for WithoutLength<&Features<T>>where
T: Context,
impl<T> Writeable for WithoutLength<&Features<T>>where
T: Context,
§impl Writeable for WithoutLength<&Script>
impl Writeable for WithoutLength<&Script>
§impl Writeable for WithoutLength<&String>
impl Writeable for WithoutLength<&String>
§impl Writeable for WithoutLength<&UntrustedString>
impl Writeable for WithoutLength<&UntrustedString>
§impl<'a, T> Writeable for WithoutLength<&'a Vec<T>>where
T: Writeable,
impl<'a, T> Writeable for WithoutLength<&'a Vec<T>>where
T: Writeable,
Auto Trait Implementations§
impl<T> Freeze for WithoutLength<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithoutLength<T>where
T: RefUnwindSafe,
impl<T> Send for WithoutLength<T>where
T: Send,
impl<T> Sync for WithoutLength<T>where
T: Sync,
impl<T> Unpin for WithoutLength<T>where
T: Unpin,
impl<T> UnwindSafe for WithoutLength<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