[−][src]Enum lightning_wire_msgs::items::MaybeOwned
Variants
Owned(O)
Borrowed(&'a B)
Trait Implementations
impl<'a, O, B> WireItem for MaybeOwned<'a, O, B> where
O: Borrow<B> + WireItem,
B: WireItemWriter,
[src]
O: Borrow<B> + WireItem,
B: WireItemWriter,
fn encode<W: Write>(&self, w: &mut W) -> Result<usize>
[src]
fn decode<R: Read>(r: &mut R) -> Result<Self>
[src]
impl<'a, O, B> Borrow<B> for MaybeOwned<'a, O, B> where
O: Borrow<B>,
[src]
O: Borrow<B>,
Auto Trait Implementations
impl<'a, O, B> Send for MaybeOwned<'a, O, B> where
B: Sync,
O: Send,
B: Sync,
O: Send,
impl<'a, O, B> Unpin for MaybeOwned<'a, O, B> where
O: Unpin,
O: Unpin,
impl<'a, O, B> Sync for MaybeOwned<'a, O, B> where
B: Sync,
O: Sync,
B: Sync,
O: Sync,
impl<'a, O, B> UnwindSafe for MaybeOwned<'a, O, B> where
B: RefUnwindSafe,
O: UnwindSafe,
B: RefUnwindSafe,
O: UnwindSafe,
impl<'a, O, B> RefUnwindSafe for MaybeOwned<'a, O, B> where
B: RefUnwindSafe,
O: RefUnwindSafe,
B: RefUnwindSafe,
O: RefUnwindSafe,
Blanket Implementations
impl<T> WireItemWriter for T where
T: TLVWireItem,
[src]
T: TLVWireItem,
impl<T> WireItemReader for T where
T: WireItem,
[src]
T: WireItem,
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> 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,