Struct breez_sdk_liquid::lightning::util::ser::LengthCalculatingWriter
pub struct LengthCalculatingWriter(pub usize);
Expand description
Writer that only tracks the amount of data written - useful if you need to calculate the length of some data when serialized but don’t yet need the full data.
This is not exported to bindings users as manual TLV building is not currently supported in bindings
Tuple Fields§
§0: usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LengthCalculatingWriter
impl RefUnwindSafe for LengthCalculatingWriter
impl Send for LengthCalculatingWriter
impl Sync for LengthCalculatingWriter
impl Unpin for LengthCalculatingWriter
impl UnwindSafe for LengthCalculatingWriter
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