pub enum Options {
Configuration {
configuration_string: Vec<u8, MAX_CONFIGURATION_STRING_LENGTH>,
},
LoadBalancing {
priority: u16,
weight: u16,
},
IpV4Endpoint {
ip: Ipv4Addr,
protocol: TransportProtocol,
port: u16,
},
IpV6Endpoint {
ip: Ipv6Addr,
protocol: TransportProtocol,
port: u16,
},
IpV4Multicast {
ip: Ipv4Addr,
protocol: TransportProtocol,
port: u16,
},
IpV6Multicast {
ip: Ipv6Addr,
protocol: TransportProtocol,
port: u16,
},
IpV4SD {
ip: Ipv4Addr,
protocol: TransportProtocol,
port: u16,
},
IpV6SD {
ip: Ipv6Addr,
protocol: TransportProtocol,
port: u16,
},
}Expand description
A decoded SD option.
Variants§
Configuration
A configuration key-value string.
Fields
LoadBalancing
Load balancing parameters.
IpV4Endpoint
An IPv4 endpoint.
Fields
§
protocol: TransportProtocolThe transport protocol (UDP or TCP).
IpV6Endpoint
An IPv6 endpoint.
Fields
§
protocol: TransportProtocolThe transport protocol (UDP or TCP).
IpV4Multicast
An IPv4 multicast address.
Fields
§
protocol: TransportProtocolThe transport protocol (UDP or TCP).
IpV6Multicast
An IPv6 multicast address.
Fields
§
protocol: TransportProtocolThe transport protocol (UDP or TCP).
IpV4SD
An IPv4 SD endpoint.
Fields
§
protocol: TransportProtocolThe transport protocol (UDP or TCP).
IpV6SD
An IPv6 SD endpoint.
Implementations§
Trait Implementations§
Source§impl Encode for Options
impl Encode for Options
Source§type Error = Error
type Error = Error
Per-implementation error; constructible from an I/O
embedded_io::ErrorKind
so the fixed-width write_* leaf helpers lift through ?. Read moreSource§fn encode_to_slice(
&self,
buf: &mut [u8],
) -> Result<usize, EncodeToSliceError<Self::Error>>
fn encode_to_slice( &self, buf: &mut [u8], ) -> Result<usize, EncodeToSliceError<Self::Error>>
Encode into a fixed slice, reporting
needed/available
(InsufficientBuffer) instead of a bare
embedded_io::ErrorKind::WriteZero when the slice is too small, and
hiding the &mut &mut [u8] cursor re-borrow every fixed-buffer call
site otherwise writes by hand. Read moreimpl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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