pub enum FaceConfig {
Udp {
bind: Option<String>,
remote: Option<String>,
},
Tcp {
bind: Option<String>,
remote: Option<String>,
},
Multicast {
group: String,
port: u16,
interface: Option<String>,
},
Unix {
path: Option<String>,
},
WebSocket {
bind: Option<String>,
url: Option<String>,
},
Serial {
path: String,
baud: u32,
},
EtherMulticast {
interface: String,
},
}Expand description
Configuration for a single face.
Each variant carries only the fields relevant to that transport type, making invalid combinations unrepresentable at parse time.
TOML syntax is unchanged — the kind field selects the variant:
[[face]]
kind = "udp"
bind = "0.0.0.0:6363"
[[face]]
kind = "serial"
path = "/dev/ttyUSB0"
baud = 115200Variants§
Trait Implementations§
Source§impl Clone for FaceConfig
impl Clone for FaceConfig
Source§fn clone(&self) -> FaceConfig
fn clone(&self) -> FaceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FaceConfig
impl Debug for FaceConfig
Source§impl<'de> Deserialize<'de> for FaceConfig
impl<'de> Deserialize<'de> for FaceConfig
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
Auto Trait Implementations§
impl Freeze for FaceConfig
impl RefUnwindSafe for FaceConfig
impl Send for FaceConfig
impl Sync for FaceConfig
impl Unpin for FaceConfig
impl UnwindSafe for FaceConfig
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