pub enum Protocol {
Http,
WebSocket,
Mqtt,
}Expand description
Transport protocol used by an endpoint.
The variants are serialized using their Rust identifier as a JSON
string (e.g. Protocol::Http becomes "Http") so that the
on-the-wire representation stays stable and human-readable.
Variants§
Http
Classic synchronous HTTP/1.1 or HTTP/2 request-response endpoint.
WebSocket
Bidirectional WebSocket stream, typically used for real-time updates.
Mqtt
MQTT topic-based publish/subscribe channel for IoT-style workloads.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more