pub trait Protocol:
Sealed
+ Copy
+ Send
+ Sync
+ 'static {
const KIND: ProtocolKind;
const DEFAULT_PORT: u16;
const NEEDS_AUTH: bool;
}Expand description
Required Associated Constants§
Sourceconst KIND: ProtocolKind
const KIND: ProtocolKind
Runtime discriminator for this protocol.
Sourceconst DEFAULT_PORT: u16
const DEFAULT_PORT: u16
Default UDP port.
Sourceconst NEEDS_AUTH: bool
const NEEDS_AUTH: bool
Whether this protocol requires TCP authentication before UDP linking.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.