pub enum DockerTagError {
Empty,
TooLong,
InvalidStart,
InvalidCharacter,
}Expand description
Error returned when Docker tag text is invalid.
Variants§
Empty
The tag was empty after trimming.
TooLong
Docker tags are limited to 128 characters.
InvalidStart
The first character was not ASCII alphanumeric or _.
InvalidCharacter
The tag contained a character outside [A-Za-z0-9_.-].
Trait Implementations§
Source§impl Clone for DockerTagError
impl Clone for DockerTagError
Source§fn clone(&self) -> DockerTagError
fn clone(&self) -> DockerTagError
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 DockerTagError
impl Debug for DockerTagError
Source§impl Display for DockerTagError
impl Display for DockerTagError
Source§impl Error for DockerTagError
impl Error for DockerTagError
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 DockerTagError
impl PartialEq for DockerTagError
Source§fn eq(&self, other: &DockerTagError) -> bool
fn eq(&self, other: &DockerTagError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DockerTagError
impl Eq for DockerTagError
impl StructuralPartialEq for DockerTagError
Auto Trait Implementations§
impl Freeze for DockerTagError
impl RefUnwindSafe for DockerTagError
impl Send for DockerTagError
impl Sync for DockerTagError
impl Unpin for DockerTagError
impl UnsafeUnpin for DockerTagError
impl UnwindSafe for DockerTagError
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