[−][src]Struct lightning_wire_msgs::watchtower::messages::Error
Fields
code: ErrorCode
data: Buffer<T>
Trait Implementations
impl<T: Borrow<[u8]>> WireMessage for Error<T>
[src]
const MSG_TYPE: u16
[src]
fn encode<W: Write>(&self, w: &mut W) -> Result<usize>
[src]
fn decode<R: Read>(reader: &mut R, check_type: bool) -> Result<Self>
[src]
impl<T: Clone + Borrow<[u8]>> Clone for Error<T>
[src]
impl<T: Debug + Borrow<[u8]>> Debug for Error<T>
[src]
Auto Trait Implementations
impl<T> Send for Error<T> where
T: Send,
T: Send,
impl<T> Unpin for Error<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Error<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Error<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Error<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> AnyWireMessageWriter for T where
T: AnyWireMessage,
[src]
T: AnyWireMessage,
fn msg_type(&Self) -> u16
[src]
fn encode<W>(&Self, &mut W) -> Result<usize, Error> where
W: Write,
[src]
W: Write,
impl<T> AnyWireMessageReader for T where
T: AnyWireMessage,
[src]
T: AnyWireMessage,
impl<T> AnyWireMessage for T where
T: WireMessage,
[src]
T: WireMessage,
fn msg_type(&Self) -> u16
[src]
fn encode<W>(&Self, &mut W) -> Result<usize, Error> where
W: Write,
[src]
W: Write,
fn decode<R>(&mut R) -> Result<T, Error> where
R: Read,
[src]
R: Read,
impl<T> WireMessageWriter for T where
T: WireMessage,
[src]
T: WireMessage,
impl<T> WireMessageReader for T where
T: WireMessage,
[src]
T: WireMessage,
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,