Enum tiny_http::ConfigListenAddr
source · [−]pub enum ConfigListenAddr {
IP(Vec<SocketAddr>),
Unix(PathBuf),
}
Variants
IP(Vec<SocketAddr>)
Unix(PathBuf)
Implementations
sourceimpl ConfigListenAddr
impl ConfigListenAddr
pub fn from_socket_addrs<A: ToSocketAddrs>(addrs: A) -> Result<Self>
pub fn unix_from_path<P: Into<PathBuf>>(path: P) -> Self
Trait Implementations
sourceimpl Clone for ConfigListenAddr
impl Clone for ConfigListenAddr
sourcefn clone(&self) -> ConfigListenAddr
fn clone(&self) -> ConfigListenAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ConfigListenAddr
impl Send for ConfigListenAddr
impl Sync for ConfigListenAddr
impl Unpin for ConfigListenAddr
impl UnwindSafe for ConfigListenAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more