pub enum ServerPort {
UnixSocket(PathBuf),
TcpPort(SocketAddr),
Demux(HashMap<u32, ServerPort>),
Merge(Vec<ServerPort>),
Tagged(Box<ServerPort>, u32),
Null,
}
Expand description
Describes how to connect to a service which is listening on some port.
Variants§
UnixSocket(PathBuf)
TcpPort(SocketAddr)
Demux(HashMap<u32, ServerPort>)
Merge(Vec<ServerPort>)
Tagged(Box<ServerPort>, u32)
Null
Implementations§
Source§impl ServerPort
impl ServerPort
pub fn connect(&self) -> ClientConnection
pub fn instantiate(&self) -> Connection
Trait Implementations§
Source§impl Clone for ServerPort
impl Clone for ServerPort
Source§fn clone(&self) -> ServerPort
fn clone(&self) -> ServerPort
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 ServerPort
impl Debug for ServerPort
Source§impl<'de> Deserialize<'de> for ServerPort
impl<'de> Deserialize<'de> for ServerPort
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 ServerPort
impl RefUnwindSafe for ServerPort
impl Send for ServerPort
impl Sync for ServerPort
impl Unpin for ServerPort
impl UnwindSafe for ServerPort
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