pub enum ContainerError {
Docker(Error),
NoId {
name: String,
},
NotAvailable(String),
NoRuntime(String),
ImagePull {
image: String,
kind: PullFailure,
detail: String,
},
CliInstall {
command: String,
detail: String,
},
VolumeRefused {
path: String,
},
NoLogin(String),
ImageIncomplete {
image: String,
missing: Vec<String>,
},
KeyRoute(String),
}Expand description
Errors from container operations.
Variants§
Docker(Error)
NoId
NotAvailable(String)
NoRuntime(String)
No container runtime answered; the text says where it looked and why each place failed
(runtime::Missing::message).
ImagePull
The image could not be downloaded. detail is the daemon’s own text,
kept for logs; the pane gets ContainerError::user_message.
CliInstall
The provider CLI could not be installed in the container.
VolumeRefused
A container_volumes entry whose source is a CLI session folder or a container runtime’s socket or folder.
NoLogin(String)
The macOS Keychain login couldn’t be given to the container (plain reason); raised before the image is pulled.
ImageIncomplete
The image lacks what an AgentMux agent needs to talk to AgentMux (agentmux-bashwrap, agentmux-mcp): a
container made from it starts and cannot reach its tools, its startup memory or anyone.
KeyRoute(String)
The agent’s API-key account can’t be used from this container (plain reason, with what to do instead).
Implementations§
Source§impl ContainerError
impl ContainerError
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
What to tell the person using the agent: what happened and what to do next, never the raw Docker error.
Trait Implementations§
Source§impl Debug for ContainerError
impl Debug for ContainerError
Source§impl Display for ContainerError
impl Display for ContainerError
Source§impl Error for ContainerError
impl Error for ContainerError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ContainerError
impl !UnwindSafe for ContainerError
impl Freeze for ContainerError
impl Send for ContainerError
impl Sync for ContainerError
impl Unpin for ContainerError
impl UnsafeUnpin for ContainerError
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more