[−][src]Enum lightning_wire_msgs::items::TLVBuffer
Variants
Vector(Vec<u8>)
Other(T)
Trait Implementations
impl<T> TLVWireItem for TLVBuffer<T> where
T: Borrow<[u8]>,
[src]
T: Borrow<[u8]>,
fn encode<W: Write>(&self, w: &mut W) -> Result<usize>
[src]
fn decode<R: Read>(r: &mut R, len: usize) -> Result<Self>
[src]
impl<T: Clone + Borrow<[u8]>> Clone for TLVBuffer<T>
[src]
impl<T> From<T> for TLVBuffer<T> where
T: Borrow<[u8]>,
[src]
T: Borrow<[u8]>,
impl<T: Debug + Borrow<[u8]>> Debug for TLVBuffer<T>
[src]
impl<T> Borrow<[u8]> for TLVBuffer<T> where
T: Borrow<[u8]>,
[src]
T: Borrow<[u8]>,
Auto Trait Implementations
impl<T> Send for TLVBuffer<T> where
T: Send,
T: Send,
impl<T> Unpin for TLVBuffer<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for TLVBuffer<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for TLVBuffer<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for TLVBuffer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> WireItemWriter for T where
T: TLVWireItem,
[src]
T: TLVWireItem,
impl<T> TLVWireItemWriter for T where
T: TLVWireItem,
[src]
T: TLVWireItem,
fn encode<W>(&Self, &mut W) -> Result<usize, Error> where
W: Write,
[src]
W: Write,
fn encode_tlv<W: Write>(&self, w: &mut W, tlv_type: u64) -> Result<usize>
[src]
impl<T> TLVWireItemReader for T where
T: TLVWireItem,
[src]
T: TLVWireItem,
fn decode<R>(&mut R, usize) -> Result<T, Error> where
R: Read,
[src]
R: Read,
fn decode_tlv<'a, R: Read>(
reader: &mut PeekReader<'a, R>,
tlv_type: u64
) -> Result<Option<Self>>
[src]
reader: &mut PeekReader<'a, R>,
tlv_type: u64
) -> Result<Option<Self>>
impl<T> TLVWireItem for T where
T: WireItem,
[src]
T: WireItem,
fn encode<W>(&Self, &mut W) -> Result<usize, Error> where
W: Write,
[src]
W: Write,
fn decode<R>(&mut R, usize) -> Result<T, Error> where
R: Read,
[src]
R: Read,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,