pub enum PortSpec {
Port(u16),
Spec(String),
}Expand description
One [network].allow_bind entry: a bare integer port (8080) or a
quoted string holding a comma list and/or lo-hi range ("9000-9005").
The untagged form lets a TOML array mix the two, e.g.
allow_bind = [8080, "9000-9005"].
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortSpec
impl<'de> Deserialize<'de> for PortSpec
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 StructuralPartialEq for PortSpec
Auto Trait Implementations§
impl Freeze for PortSpec
impl RefUnwindSafe for PortSpec
impl Send for PortSpec
impl Sync for PortSpec
impl Unpin for PortSpec
impl UnsafeUnpin for PortSpec
impl UnwindSafe for PortSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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