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 instantiate(&self) -> ServerOrBound
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
source§impl From<&ServerPort> for RealizedServerPort
impl From<&ServerPort> for RealizedServerPort
source§fn from(port: &ServerPort) -> Self
fn from(port: &ServerPort) -> Self
Converts to this type from the input type.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)