starlane_core/
space.rs

1use tokio::sync::oneshot;
2
3use starlane_resources::message::Fail;
4use starlane_resources::ResourceSelector;
5
6use crate::error::Error;
7use crate::resource::AppKey;
8
9pub struct AppSelectCommand {
10    pub selector: ResourceSelector,
11    pub tx: oneshot::Sender<Result<Vec<AppKey>, Fail>>,
12}
13
14pub enum CreateAppControllerFail {
15    PermissionDenied,
16    SpacesDoNotMatch,
17    UnexpectedResponse,
18    Timeout,
19    Error(Error),
20}