pub struct ChannelEndPath(pub PortId, pub ChannelId);Tuple Fields§
§0: PortId§1: ChannelIdImplementations§
Source§impl ChannelEndPath
impl ChannelEndPath
pub fn new(port_id: &PortId, channel_id: &ChannelId) -> ChannelEndPath
Sourcepub fn prefix() -> String
pub fn prefix() -> String
Returns the channel end store prefix under which all the channel ends are stored: “channelEnds”.
Sourcepub fn commitments_path(&self) -> String
pub fn commitments_path(&self) -> String
Returns the parent group path under which all the commitment packets of a channel are stored.
Sourcepub fn acks_path(&self) -> String
pub fn acks_path(&self) -> String
Returns the parent group path under which all the ack packets of a channel are stored.
Sourcepub fn receipts_path(&self) -> String
pub fn receipts_path(&self) -> String
Returns the parent group path under which all the receipt packets of a channel are stored.
Trait Implementations§
Source§impl BorshDeserialize for ChannelEndPath
impl BorshDeserialize for ChannelEndPath
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ChannelEndPath
impl BorshSerialize for ChannelEndPath
Source§impl Clone for ChannelEndPath
impl Clone for ChannelEndPath
Source§fn clone(&self) -> ChannelEndPath
fn clone(&self) -> ChannelEndPath
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 ChannelEndPath
impl Debug for ChannelEndPath
Source§impl Decode for ChannelEndPath
impl Decode for ChannelEndPath
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl<'de> Deserialize<'de> for ChannelEndPath
impl<'de> Deserialize<'de> for ChannelEndPath
Source§fn 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
Source§impl Display for ChannelEndPath
impl Display for ChannelEndPath
Source§impl Encode for ChannelEndPath
impl Encode for ChannelEndPath
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<ChannelEndPath> for Path
impl From<ChannelEndPath> for Path
Source§fn from(value: ChannelEndPath) -> Self
fn from(value: ChannelEndPath) -> Self
Converts to this type from the input type.
Source§impl Hash for ChannelEndPath
impl Hash for ChannelEndPath
Source§impl Ord for ChannelEndPath
impl Ord for ChannelEndPath
Source§fn cmp(&self, other: &ChannelEndPath) -> Ordering
fn cmp(&self, other: &ChannelEndPath) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChannelEndPath
impl PartialEq for ChannelEndPath
Source§impl PartialOrd for ChannelEndPath
impl PartialOrd for ChannelEndPath
Source§impl Serialize for ChannelEndPath
impl Serialize for ChannelEndPath
Source§impl TypeInfo for ChannelEndPath
impl TypeInfo for ChannelEndPath
impl EncodeLike for ChannelEndPath
impl Eq for ChannelEndPath
impl StructuralPartialEq for ChannelEndPath
Auto Trait Implementations§
impl Freeze for ChannelEndPath
impl RefUnwindSafe for ChannelEndPath
impl Send for ChannelEndPath
impl Sync for ChannelEndPath
impl Unpin for ChannelEndPath
impl UnwindSafe for ChannelEndPath
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