Enum northstar_runtime::api::model::Error
source · pub enum Error {
Show 15 variants
Configuration {
context: String,
},
DuplicateContainer {
container: Container,
},
InvalidContainer {
container: Container,
},
InvalidArguments {
cause: String,
},
MountBusy {
container: Container,
},
UmountBusy {
container: Container,
},
StartContainerStarted {
container: Container,
},
StartContainerResource {
container: Container,
},
StartContainerMissingResource {
container: Container,
resource: Name,
version: String,
},
StartContainerFailed {
container: Container,
error: String,
},
StopContainerNotStarted {
container: Container,
},
InvalidRepository {
repository: RepositoryId,
},
InstallDuplicate {
container: Container,
},
CriticalContainer {
container: Container,
status: ExitStatus,
},
Unexpected {
error: String,
},
}Expand description
API error
Variants§
Configuration
DuplicateContainer
InvalidContainer
InvalidArguments
MountBusy
UmountBusy
StartContainerStarted
StartContainerResource
StartContainerMissingResource
StartContainerFailed
StopContainerNotStarted
InvalidRepository
Fields
§
repository: RepositoryIdInstallDuplicate
CriticalContainer
Unexpected
Trait Implementations§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.