pub enum ControlEndpoint {
UnixPath(String),
Loopback(u16),
}Expand description
Where the control plane actually listens, resolved from what the operator typed.
Unix has domain sockets, Windows does not (its equivalent is a named pipe,
which lands with the Win32 pipe server). Rather than make every script and
CI job branch on the platform, the same --control argument resolves on
both: a path becomes a deterministic loopback port on Windows, derived from
the path text so the daemon and rtimec independently agree on it.
The daemon prints the resolved endpoint at startup, so the mapping is visible rather than a silent surprise.
Variants§
Trait Implementations§
Source§impl Clone for ControlEndpoint
impl Clone for ControlEndpoint
Source§fn clone(&self) -> ControlEndpoint
fn clone(&self) -> ControlEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControlEndpoint
impl Debug for ControlEndpoint
impl Eq for ControlEndpoint
Source§impl Hash for ControlEndpoint
impl Hash for ControlEndpoint
Source§impl PartialEq for ControlEndpoint
impl PartialEq for ControlEndpoint
impl StructuralPartialEq for ControlEndpoint
Auto Trait Implementations§
impl Freeze for ControlEndpoint
impl RefUnwindSafe for ControlEndpoint
impl Send for ControlEndpoint
impl Sync for ControlEndpoint
impl Unpin for ControlEndpoint
impl UnsafeUnpin for ControlEndpoint
impl UnwindSafe for ControlEndpoint
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