[−][src]Struct lightning_wire_msgs::watchtower::items::blob::Type
Methods
impl Type
[src]
pub const fn has(&self, f: Flag) -> bool
[src]
pub const fn is(&self, t: KnownType) -> bool
[src]
pub fn has_unknown_flags(&self) -> bool
[src]
Trait Implementations
impl WireItem for Type
[src]
fn encode<W: Write>(&self, w: &mut W) -> Result<usize>
[src]
fn decode<R: Read>(r: &mut R) -> Result<Self>
[src]
impl Eq for Type
[src]
impl Clone for Type
[src]
impl PartialEq<Type> for Type
[src]
impl<T> From<T> for Type where
u16: From<T>,
[src]
u16: From<T>,
impl Copy for Type
[src]
impl Display for Type
[src]
impl Debug for Type
[src]
impl TryFrom<Type> for KnownType
[src]
type Error = Type
The type returned in the event of a conversion error.
fn try_from(t: Type) -> Result<Self, Type>
[src]
impl FromIterator<Flag> for Type
[src]
fn from_iter<I: IntoIterator<Item = Flag>>(iter: I) -> Self
[src]
Auto Trait Implementations
impl Unpin for Type
impl Sync for Type
impl Send for Type
impl UnwindSafe for Type
impl RefUnwindSafe for Type
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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, 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,