Struct everscale_network::SubscriberContext
source · pub struct SubscriberContext<'a> {
pub adnl: &'a Arc<Node>,
pub local_id: &'a NodeIdShort,
pub peer_id: &'a NodeIdShort,
}Expand description
Message or query context.
See MessageSubscriber::try_consume_custom and QuerySubscriber::try_consume_query
Fields§
§adnl: &'a Arc<Node>§local_id: &'a NodeIdShort§peer_id: &'a NodeIdShortTrait Implementations§
source§impl<'a> Clone for SubscriberContext<'a>
impl<'a> Clone for SubscriberContext<'a>
source§fn clone(&self) -> SubscriberContext<'a>
fn clone(&self) -> SubscriberContext<'a>
Returns a copy 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 more