Something went wrong. Try again.
A simple text chat CLI and Proof of Concept for AT Micro.
Something went wrong. Try again.
123456789101112131415161718192021222324use thiserror::Error;
#[derive(Error, Debug)]pub enum RoomConnectionError { #[error("`{received}` is not a valid Room space type; expected `${expected}`")] InvalidRoomSpaceType { received: String, expected: String, }, #[error("The DID `{0}` is not a valid AT Protocol DID")] NonAtprotoDid(String), #[error("OAuth encountered a `{0}` error: {1}")] OAuthError(String, String), #[error("OAuth was aborted or took too long")] OAuthTimeout,}
/// A general error with microchat.#[derive(Error, Debug)]pub enum MicrochatError { #[error("A room was expected, but you are currently disconnected from any room.")] RoomDisconnected}