pub enum Error {
Show 15 variants
Workspace(Error),
Backend(Error),
Ipc(Error),
Io(Error),
UnknownWorkspace(PathBuf, &'static str),
NoWorkspace,
UnknownWorkspaceName(String),
WrongApp {
name: String,
app_name: String,
},
SyncId(String),
Sync(String),
Bridge(String),
Session(Error),
Config(String),
Mcp(String),
Service(Error),
}Expand description
Errors raised while serving an application’s workspaces.
Variants§
Workspace(Error)
Opening or using a workspace failed.
Backend(Error)
A backend operation failed.
Ipc(Error)
The IPC layer failed.
Io(Error)
Listening, or preparing the runtime directory, failed.
UnknownWorkspace(PathBuf, &'static str)
The request named a directory that is not a workspace of this application.
NoWorkspace
The server has no workspace yet, or the one asked for is no longer current (#215).
UnknownWorkspaceName(String)
The workgroup has no workspace with this name or id.
WrongApp
The workgroup workspace belongs to another application.
SyncId(String)
A workspace’s sync identity could not be read or written.
Never repaired by minting a new identity: the workspace may already exist on another device, and a second identity would make the two sync as unrelated workspaces for ever.
Sync(String)
The replication core failed.
Carries its error’s Display, not the error: the core’s own type is an internal
detail, while the message is what status and the logs need.
Bridge(String)
The bridge refused a request, or could not be reached.
Not fatal to the app server: the bridge carries replication, and everything the application itself does works without it (spec §10).
Session(Error)
A replication session failed.
Config(String)
A configuration file that could not be read or written as expected.
Mcp(String)
The MCP session on stdio could not start or ended abnormally.
Service(Error)
Installing, removing or reporting this application’s service failed.
Carries the service crate’s own message, which already says what to do about the case at hand, or which platform offers what.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§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>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§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.Source§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.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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