pub struct OpenAck { /* private fields */ }
Implementations§
source§impl OpenAck
impl OpenAck
pub fn new( port_id_on_a: PortId, chan_id_on_a: ChannelId, port_id_on_b: PortId, chan_id_on_b: ChannelId, conn_id_on_a: ConnectionId ) -> OpenAck
pub fn port_id_on_a(&self) -> &PortId
pub fn chan_id_on_a(&self) -> &ChannelId
pub fn port_id_on_b(&self) -> &PortId
pub fn chan_id_on_b(&self) -> &ChannelId
pub fn conn_id_on_a(&self) -> &ConnectionId
pub fn event_type(&self) -> &str
Trait Implementations§
source§impl BorshDeserialize for OpenAckwhere
PortIdAttribute: BorshDeserialize,
ChannelIdAttribute: BorshDeserialize,
CounterpartyPortIdAttribute: BorshDeserialize,
CounterpartyChannelIdAttribute: BorshDeserialize,
ConnectionIdAttribute: BorshDeserialize,
impl BorshDeserialize for OpenAckwhere
PortIdAttribute: BorshDeserialize,
ChannelIdAttribute: BorshDeserialize,
CounterpartyPortIdAttribute: BorshDeserialize,
CounterpartyChannelIdAttribute: BorshDeserialize,
ConnectionIdAttribute: BorshDeserialize,
fn deserialize_reader<R>(reader: &mut R) -> Result<OpenAck, Error>where
R: Read,
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 OpenAckwhere
PortIdAttribute: BorshSerialize,
ChannelIdAttribute: BorshSerialize,
CounterpartyPortIdAttribute: BorshSerialize,
CounterpartyChannelIdAttribute: BorshSerialize,
ConnectionIdAttribute: BorshSerialize,
impl BorshSerialize for OpenAckwhere
PortIdAttribute: BorshSerialize,
ChannelIdAttribute: BorshSerialize,
CounterpartyPortIdAttribute: BorshSerialize,
CounterpartyChannelIdAttribute: BorshSerialize,
ConnectionIdAttribute: BorshSerialize,
source§impl Decode for OpenAck
impl Decode for OpenAck
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<OpenAck, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<OpenAck, Error>where
__CodecInputEdqy: Input,
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 OpenAck
impl<'de> Deserialize<'de> for OpenAck
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<OpenAck, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<OpenAck, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for OpenAck
impl Encode for OpenAck
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>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy>( &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 PartialEq for OpenAck
impl PartialEq for OpenAck
source§impl Serialize for OpenAck
impl Serialize for OpenAck
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl EncodeLike for OpenAck
impl Eq for OpenAck
impl StructuralPartialEq for OpenAck
Auto Trait Implementations§
impl Freeze for OpenAck
impl RefUnwindSafe for OpenAck
impl Send for OpenAck
impl Sync for OpenAck
impl Unpin for OpenAck
impl UnwindSafe for OpenAck
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