#[non_exhaustive]pub struct ChannelReply {
pub reply: Option<(u8, usize)>,
pub established: Option<Established>,
pub evicted: Option<Evicted>,
}Available on crate feature
rustcrypto only.Expand description
What Channel::on_message produced.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reply: Option<(u8, usize)>The opcode to send back, and how much of the reply buffer it occupies.
None means say nothing: a message for a handshake that is not running is dropped
rather than answered, because answering it would tell a stranger what state the node is
in.
established: Option<Established>The session this message completed, if it completed one.
evicted: Option<Evicted>A session evicted to make room for it (§4.11.1.1), whose peer is owed the report already framed in the eviction buffer.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ChannelReply
impl Freeze for ChannelReply
impl Move for ChannelReply
impl RefUnwindSafe for ChannelReply
impl Send for ChannelReply
impl Sync for ChannelReply
impl Unpin for ChannelReply
impl UnsafeUnpin for ChannelReply
impl UnwindSafe for ChannelReply
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