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
Try broadcast
Single(SessionId)Try send to only one
Try send to some session, if return true, send to it
Trait Implementations
Performs the conversion.
Performs the conversion.