Struct lnp_rpc::ChannelInfo
source · [−]pub struct ChannelInfo {
pub state: ChannelState,
pub remote_peer: Option<NodeAddr>,
}
Fields
state: ChannelState
remote_peer: Option<NodeAddr>
Trait Implementations
sourceimpl Clone for ChannelInfo
impl Clone for ChannelInfo
sourcefn clone(&self) -> ChannelInfo
fn clone(&self) -> ChannelInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelInfo
impl Debug for ChannelInfo
sourceimpl<'de> Deserialize<'de> for ChannelInfo
impl<'de> Deserialize<'de> for ChannelInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ChannelInfo
impl Display for ChannelInfo
sourceimpl From<ChannelInfo> for RpcMsg
impl From<ChannelInfo> for RpcMsg
sourcefn from(v: ChannelInfo) -> Self
fn from(v: ChannelInfo) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ChannelInfo
impl Serialize for ChannelInfo
sourceimpl StrictDecode for ChannelInfo
impl StrictDecode for ChannelInfo
sourcefn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
sourceimpl StrictEncode for ChannelInfo
impl StrictEncode for ChannelInfo
sourcefn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
sourceimpl ToYamlString for ChannelInfo
impl ToYamlString for ChannelInfo
sourcefn to_yaml_string(&self) -> String
fn to_yaml_string(&self) -> String
Performs conversion of the self
into a YAML-encoded string
Auto Trait Implementations
impl RefUnwindSafe for ChannelInfo
impl Send for ChannelInfo
impl Sync for ChannelInfo
impl Unpin for ChannelInfo
impl UnwindSafe for ChannelInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more