pub struct PortRange(pub RangeInclusive<u16>);
Expand description
Port or range of ports.
§Examples
Specify a single port:
use docker_command::PortRange;
let port = PortRange::from(123);
assert_eq!(port, PortRange(123..=123));
Specify a port range:
use docker_command::PortRange;
PortRange(123..=567);
Tuple Fields§
§0: RangeInclusive<u16>
Trait Implementations§
impl Eq for PortRange
impl StructuralPartialEq for PortRange
Auto Trait Implementations§
impl Freeze for PortRange
impl RefUnwindSafe for PortRange
impl Send for PortRange
impl Sync for PortRange
impl Unpin for PortRange
impl UnwindSafe for PortRange
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