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: TTrait 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<ScriptBuf>
impl Readable for WithoutLength<ScriptBuf>
§fn read<R>(r: &mut R) -> Result<WithoutLength<ScriptBuf>, DecodeError>where
R: Read,
fn read<R>(r: &mut R) -> Result<WithoutLength<ScriptBuf>, 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<&ScriptBuf>
impl Writeable for WithoutLength<&ScriptBuf>
§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<T> AnySync for T
impl<T> AnySync for T
§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> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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