pub enum ListenConfig {
Tcp {
address: String,
tls: bool,
},
Unix {
path: PathBuf,
},
Systemd,
}Expand description
Listener configuration from the config file.
Variants§
Tcp
Listen on a TCP address with optional TLS.
Fields
Unix
Listen on a Unix domain socket.
Systemd
Inherit sockets from systemd socket activation.
Trait Implementations§
Source§impl Clone for ListenConfig
impl Clone for ListenConfig
Source§fn clone(&self) -> ListenConfig
fn clone(&self) -> ListenConfig
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 ListenConfig
impl Debug for ListenConfig
Source§impl<'de> Deserialize<'de> for ListenConfig
impl<'de> Deserialize<'de> for ListenConfig
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 ListenConfig
impl RefUnwindSafe for ListenConfig
impl Send for ListenConfig
impl Sync for ListenConfig
impl Unpin for ListenConfig
impl UnsafeUnpin for ListenConfig
impl UnwindSafe for ListenConfig
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