#[non_exhaustive]pub enum GenerationError {
EmptyValue(&'static str),
ContainsNul(&'static str),
InvalidEnvironmentName,
InvalidContainerName,
InvalidShortComponent(&'static str),
InvalidSelinuxBind,
DuplicateField(&'static str),
DuplicateName {
kind: &'static str,
name: String,
},
InvalidPort,
UnrepresentableSctpHostIp,
MissingService,
InternalInvariant(&'static str),
}Expand description
A generated Compose value is empty or contains a NUL byte.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyValue(&'static str)
A required value is empty.
ContainsNul(&'static str)
A value contains a NUL byte and cannot represent native container intent safely.
InvalidEnvironmentName
An environment name contains Compose list-form’s = separator.
InvalidContainerName
A custom container name does not satisfy Compose’s portable name grammar.
InvalidShortComponent(&'static str)
A short-form component contains its reserved separator.
InvalidSelinuxBind
A short bind spelling needed for SELinux cannot be encoded unambiguously.
DuplicateField(&'static str)
A singleton field was configured more than once.
DuplicateName
A named generated collection contains the same name more than once.
InvalidPort
A generated port used target port zero.
UnrepresentableSctpHostIp
An SCTP port selected a host address without a published port.
MissingService
A generated project contains no services.
InternalInvariant(&'static str)
ComposeLens could not parse its own deterministic generated bytes.
Trait Implementations§
Source§impl Clone for GenerationError
impl Clone for GenerationError
Source§fn clone(&self) -> GenerationError
fn clone(&self) -> GenerationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenerationError
impl Debug for GenerationError
Source§impl Display for GenerationError
impl Display for GenerationError
impl Eq for GenerationError
Source§impl Error for GenerationError
impl Error for GenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()