Enum tentacle::service::ProtocolHandle
source · pub enum ProtocolHandle<T: Sized> {
None,
Callback(T),
}
Expand description
Protocol handle Contains four modes, each of which has a corresponding behavior, please carefully consider which mode should be used in the protocol
Variants§
None
No operation: Receive messages, but do not process, silently discard
Callback(T)
Callback handle: The behavior of receiving the protocol through the corresponding
ServiceProtocol
or SessionProtocol
, according to the registered trait, has different
behaviors, each has its own advantages and disadvantages, please carefully consider.
This is also the recommended way to use this crate.