pub enum Publish {
Free,
Preferred(NonZeroU16),
Fixed(NonZeroU16),
}Expand description
Whether and how a port is reachable from the user’s machine (loopback only).
Variants§
Free
true: a free host port, the port’s own number when it is free.
Preferred(NonZeroU16)
A number: that host port when it is free, else a free one (labs never collide).
Fixed(NonZeroU16)
{ host, fixed: true }: that host port or nothing (an app that calls
localhost:<port> itself); the environment can’t start while another holds it.
Trait Implementations§
impl Copy for Publish
impl Eq for Publish
impl StructuralPartialEq for Publish
Auto Trait Implementations§
impl Freeze for Publish
impl RefUnwindSafe for Publish
impl Send for Publish
impl Sync for Publish
impl Unpin for Publish
impl UnsafeUnpin for Publish
impl UnwindSafe for Publish
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.