Enum ckb_network::TargetSession [−][src]
pub enum TargetSession {
All,
Single(SessionId),
Filter(Box<dyn Fn(&SessionId) + Send + 'static, Global>),
}Expand description
When sending a message, select the specified session
Variants
All
Try broadcast
Single(SessionId)
Tuple Fields
0: SessionIdTry send to only one
Filter(Box<dyn Fn(&SessionId) + Send + 'static, Global>)
Try send to some session, if return true, send to it
Trait Implementations
Performs the conversion.
Performs the conversion.
