Enum zbus_names::Error
source ·
[−]#[non_exhaustive]
pub enum Error {
Variant(VariantError),
InvalidBusName(String, String),
InvalidWellKnownName(String),
InvalidUniqueName(String),
InvalidInterfaceName(String),
InvalidMemberName(String),
InvalidErrorName(String),
}
Expand description
The error type for zbus_names
.
The various errors that can be reported by this crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Variant(VariantError)
Tuple Fields
0: VariantError
InvalidBusName(String, String)
Invalid bus name. The strings describe why the bus name is neither a valid unique nor well-known name, respectively.
InvalidWellKnownName(String)
Tuple Fields
0: String
Invalid well-known bus name.
InvalidUniqueName(String)
Tuple Fields
0: String
Invalid unique bus name.
InvalidInterfaceName(String)
Tuple Fields
0: String
Invalid interface name.
InvalidMemberName(String)
Tuple Fields
0: String
Invalid member (method or signal) name.
InvalidErrorName(String)
Tuple Fields
0: String
Invalid error name.
Trait Implementations
Performs the conversion.