pub enum PortPolicy {
Dynamic,
Fixed(u16),
}Expand description
dynamic — the provider allocates a free port; {"fixed": N} — the
service must bind exactly N, colliding with any other fixed N in the
same contract (refused at validation).
Variants§
Trait Implementations§
Source§impl Clone for PortPolicy
impl Clone for PortPolicy
Source§fn clone(&self) -> PortPolicy
fn clone(&self) -> PortPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PortPolicy
impl Debug for PortPolicy
Source§impl<'de> Deserialize<'de> for PortPolicy
impl<'de> Deserialize<'de> for PortPolicy
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
impl Eq for PortPolicy
Source§impl PartialEq for PortPolicy
impl PartialEq for PortPolicy
impl StructuralPartialEq for PortPolicy
Auto Trait Implementations§
impl Freeze for PortPolicy
impl RefUnwindSafe for PortPolicy
impl Send for PortPolicy
impl Sync for PortPolicy
impl Unpin for PortPolicy
impl UnsafeUnpin for PortPolicy
impl UnwindSafe for PortPolicy
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