Enum shadowsocks::config::ManagerAddr
source · pub enum ManagerAddr {
SocketAddr(SocketAddr),
DomainName(String, u16),
UnixSocketAddr(PathBuf),
}
Expand description
Address for Manager server
Variants§
SocketAddr(SocketAddr)
IP address
DomainName(String, u16)
Domain name address
UnixSocketAddr(PathBuf)
Unix socket path
Trait Implementations§
source§impl Clone for ManagerAddr
impl Clone for ManagerAddr
source§fn clone(&self) -> ManagerAddr
fn clone(&self) -> ManagerAddr
Returns a copy 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 ManagerAddr
impl Debug for ManagerAddr
source§impl Display for ManagerAddr
impl Display for ManagerAddr
source§impl From<PathBuf> for ManagerAddr
impl From<PathBuf> for ManagerAddr
source§fn from(p: PathBuf) -> ManagerAddr
fn from(p: PathBuf) -> ManagerAddr
Converts to this type from the input type.
source§impl From<SocketAddr> for ManagerAddr
impl From<SocketAddr> for ManagerAddr
source§fn from(addr: SocketAddr) -> ManagerAddr
fn from(addr: SocketAddr) -> ManagerAddr
Converts to this type from the input type.
source§impl FromStr for ManagerAddr
impl FromStr for ManagerAddr
§type Err = ManagerAddrError
type Err = ManagerAddrError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ManagerAddr, ManagerAddrError>
fn from_str(s: &str) -> Result<ManagerAddr, ManagerAddrError>
Parses a string
s
to return a value of this type. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ManagerAddr
impl Send for ManagerAddr
impl Sync for ManagerAddr
impl Unpin for ManagerAddr
impl UnwindSafe for ManagerAddr
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