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
sourceimpl Clone for ManagerAddr
impl Clone for ManagerAddr
sourcefn clone(&self) -> ManagerAddr
fn clone(&self) -> ManagerAddr
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 more
sourceimpl Debug for ManagerAddr
impl Debug for ManagerAddr
sourceimpl Display for ManagerAddr
impl Display for ManagerAddr
sourceimpl From<PathBuf> for ManagerAddr
impl From<PathBuf> for ManagerAddr
sourcefn from(p: PathBuf) -> ManagerAddr
fn from(p: PathBuf) -> ManagerAddr
Converts to this type from the input type.
sourceimpl From<SocketAddr> for ManagerAddr
impl From<SocketAddr> for ManagerAddr
sourcefn from(addr: SocketAddr) -> ManagerAddr
fn from(addr: SocketAddr) -> ManagerAddr
Converts to this type from the input type.
sourceimpl FromStr for ManagerAddr
impl FromStr for ManagerAddr
type Err = ManagerAddrError
type Err = ManagerAddrError
The associated error which can be returned from parsing.
sourcefn 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 more
Auto Trait Implementations
impl RefUnwindSafe for ManagerAddr
impl Send for ManagerAddr
impl Sync for ManagerAddr
impl Unpin for ManagerAddr
impl UnwindSafe for ManagerAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more