pub struct TlcErrPacket(/* private fields */);Implementations§
Source§impl TlcErrPacket
impl TlcErrPacket
pub const FIELD_COUNT: usize = 1
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn onion_packet(&self) -> Bytes
pub fn as_reader<'r>(&'r self) -> TlcErrPacketReader<'r>
Trait Implementations§
Source§impl Clone for TlcErrPacket
impl Clone for TlcErrPacket
Source§fn clone(&self) -> TlcErrPacket
fn clone(&self) -> TlcErrPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TlcErrPacket
impl Debug for TlcErrPacket
Source§impl Default for TlcErrPacket
impl Default for TlcErrPacket
Source§impl Display for TlcErrPacket
impl Display for TlcErrPacket
Source§impl Entity for TlcErrPacket
impl Entity for TlcErrPacket
const NAME: &'static str = "TlcErrPacket"
type Builder = TlcErrPacketBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<TlcErrPacket> for RemoveTlcReason
impl From<TlcErrPacket> for RemoveTlcReason
Source§fn from(value: TlcErrPacket) -> Self
fn from(value: TlcErrPacket) -> Self
Converts to this type from the input type.
Source§impl From<TlcErrPacket> for RemoveTlcReasonUnion
impl From<TlcErrPacket> for RemoveTlcReasonUnion
Source§fn from(item: TlcErrPacket) -> Self
fn from(item: TlcErrPacket) -> Self
Converts to this type from the input type.
Source§impl From<TlcErrPacket> for TlcErrPacket
impl From<TlcErrPacket> for TlcErrPacket
Source§fn from(tlc_err_packet: TlcErrPacket) -> Self
fn from(tlc_err_packet: TlcErrPacket) -> Self
Converts to this type from the input type.
Source§impl From<TlcErrPacket> for TlcErrPacket
impl From<TlcErrPacket> for TlcErrPacket
Source§fn from(tlc_err_packet: TlcErrPacket) -> Self
fn from(tlc_err_packet: TlcErrPacket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for TlcErrPacket
impl RefUnwindSafe for TlcErrPacket
impl Send for TlcErrPacket
impl Sync for TlcErrPacket
impl Unpin for TlcErrPacket
impl UnsafeUnpin for TlcErrPacket
impl UnwindSafe for TlcErrPacket
Blanket Implementations§
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