pub enum PortMappingError {
Empty,
InvalidPort,
InvalidProtocol,
InvalidMapping,
}Expand description
Error returned when a Docker port mapping is invalid.
Variants§
Empty
The mapping was empty after trimming.
InvalidPort
A port number was missing or outside 1..=65535.
InvalidProtocol
The protocol suffix was not recognized.
InvalidMapping
The mapping had too many fields or unsupported host syntax.
Trait Implementations§
Source§impl Clone for PortMappingError
impl Clone for PortMappingError
Source§fn clone(&self) -> PortMappingError
fn clone(&self) -> PortMappingError
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 PortMappingError
impl Debug for PortMappingError
Source§impl Display for PortMappingError
impl Display for PortMappingError
Source§impl Error for PortMappingError
impl Error for PortMappingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PortMappingError
impl PartialEq for PortMappingError
Source§fn eq(&self, other: &PortMappingError) -> bool
fn eq(&self, other: &PortMappingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PortMappingError
impl Eq for PortMappingError
impl StructuralPartialEq for PortMappingError
Auto Trait Implementations§
impl Freeze for PortMappingError
impl RefUnwindSafe for PortMappingError
impl Send for PortMappingError
impl Sync for PortMappingError
impl Unpin for PortMappingError
impl UnsafeUnpin for PortMappingError
impl UnwindSafe for PortMappingError
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