pub enum CatBridgeError {
    API(APIError),
    ClosedChannel,
    FS(FSError),
    JoinFailure(JoinError),
    Network(NetworkError),
    SpawnFailure(Error),
    UnknownError(Report),
    UnsupportedBitsPerCore,
}Expand description
The ‘top-level’ error type for this entire crate, all error types wrap underneath this.
Variants§
API(APIError)
See APIError for details.
ClosedChannel
We tried sending a message from one thread to another (within the same process), but delivery could not be completed.
For more information on why this could fail please look at the associated modules we may be using:
Each of these contain more information.
FS(FSError)
See FSError for details.
JoinFailure(JoinError)
We spawned a background task, and for whatever reason we could not wait for it to finish.
For the potential reasons for this, take a peek at tokio’s
documentation. Which is our asynchronous runtime.
Network(NetworkError)
See NetworkError for details.
SpawnFailure(Error)
We tried to spawn a task to run in the background, but couldn’t.
For the potential reasons for this, take a peek at tokio’s
documentation. Which is our asynchronous runtime.
UnknownError(Report)
An unknown error occured.
UnsupportedBitsPerCore
Trait Implementations§
Source§impl Debug for CatBridgeError
 
impl Debug for CatBridgeError
Source§impl Diagnostic for CatBridgeError
 
impl Diagnostic for CatBridgeError
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
 
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn help(&self) -> Option<Box<dyn Display + '_>>
 
fn help(&self) -> Option<Box<dyn Display + '_>>
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn severity(&self) -> Option<Severity>
 
fn severity(&self) -> Option<Severity>
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
 
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic’s Diagnostic::source_codeSource§fn source_code(&self) -> Option<&dyn SourceCode>
 
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic’s Diagnostic::labels to.Diagnostics.Source§fn url(&self) -> Option<Box<dyn Display + '_>>
 
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
 
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Display for CatBridgeError
 
impl Display for CatBridgeError
Source§impl Error for CatBridgeError
 
impl Error for CatBridgeError
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
Source§impl From<APIError> for CatBridgeError
 
impl From<APIError> for CatBridgeError
Source§impl From<CommonNetAPIError> for CatBridgeError
Available on crate features clients or servers only. 
impl From<CommonNetAPIError> for CatBridgeError
clients or servers only.Source§fn from(value: CommonNetAPIError) -> Self
 
fn from(value: CommonNetAPIError) -> Self
Source§impl From<CommonNetClientNetworkError> for CatBridgeError
Available on crate feature clients only. 
impl From<CommonNetClientNetworkError> for CatBridgeError
clients only.Source§fn from(value: CommonNetClientNetworkError) -> Self
 
fn from(value: CommonNetClientNetworkError) -> Self
Source§impl From<CommonNetNetworkError> for CatBridgeError
Available on crate features clients or servers only. 
impl From<CommonNetNetworkError> for CatBridgeError
clients or servers only.Source§fn from(value: CommonNetNetworkError) -> Self
 
fn from(value: CommonNetNetworkError) -> Self
Source§impl From<Error> for CatBridgeError
Available on crate feature clients only. 
impl From<Error> for CatBridgeError
clients only.Source§fn from(value: ReqwestError) -> Self
 
fn from(value: ReqwestError) -> Self
Source§impl From<FSEmulAPIError> for CatBridgeError
 
impl From<FSEmulAPIError> for CatBridgeError
Source§fn from(value: FSEmulAPIError) -> Self
 
fn from(value: FSEmulAPIError) -> Self
Source§impl From<FSEmulFSError> for CatBridgeError
 
impl From<FSEmulFSError> for CatBridgeError
Source§fn from(value: FSEmulFSError) -> Self
 
fn from(value: FSEmulFSError) -> Self
Source§impl From<FSEmulNetworkError> for CatBridgeError
 
impl From<FSEmulNetworkError> for CatBridgeError
Source§fn from(value: FSEmulNetworkError) -> Self
 
fn from(value: FSEmulNetworkError) -> Self
Source§impl From<FSEmulProtocolError> for CatBridgeError
 
impl From<FSEmulProtocolError> for CatBridgeError
Source§fn from(value: FSEmulProtocolError) -> Self
 
fn from(value: FSEmulProtocolError) -> Self
Source§impl From<FSError> for CatBridgeError
 
impl From<FSError> for CatBridgeError
Source§impl From<JoinError> for CatBridgeError
 
impl From<JoinError> for CatBridgeError
Source§impl From<MionCGIErrors> for CatBridgeError
Available on crate features clients or servers only. 
impl From<MionCGIErrors> for CatBridgeError
clients or servers only.Source§fn from(value: MionCGIErrors) -> Self
 
fn from(value: MionCGIErrors) -> Self
Source§impl From<MionControlProtocolError> for CatBridgeError
Available on crate features clients or servers only. 
impl From<MionControlProtocolError> for CatBridgeError
clients or servers only.Source§fn from(value: MionControlProtocolError) -> Self
 
fn from(value: MionControlProtocolError) -> Self
Source§impl From<MionFirmwareAPIError> for CatBridgeError
 
impl From<MionFirmwareAPIError> for CatBridgeError
Source§fn from(value: MionFirmwareAPIError) -> Self
 
fn from(value: MionFirmwareAPIError) -> Self
Source§impl From<MionParamProtocolError> for CatBridgeError
Available on crate features clients or servers only. 
impl From<MionParamProtocolError> for CatBridgeError
clients or servers only.Source§fn from(value: MionParamProtocolError) -> Self
 
fn from(value: MionParamProtocolError) -> Self
Source§impl From<MionParameterAPIError> for CatBridgeError
Available on crate features clients or servers only. 
impl From<MionParameterAPIError> for CatBridgeError
clients or servers only.Source§fn from(value: MionParameterAPIError) -> Self
 
fn from(value: MionParameterAPIError) -> Self
Source§impl From<MionProtocolError> for CatBridgeError
 
impl From<MionProtocolError> for CatBridgeError
Source§fn from(value: MionProtocolError) -> Self
 
fn from(value: MionProtocolError) -> Self
Source§impl From<NetworkError> for CatBridgeError
 
impl From<NetworkError> for CatBridgeError
Source§fn from(source: NetworkError) -> Self
 
fn from(source: NetworkError) -> Self
Source§impl From<NetworkParseError> for CatBridgeError
 
impl From<NetworkParseError> for CatBridgeError
Source§fn from(value: NetworkParseError) -> Self
 
fn from(value: NetworkParseError) -> Self
Source§impl From<PcfsApiError> for CatBridgeError
 
impl From<PcfsApiError> for CatBridgeError
Source§fn from(value: PcfsApiError) -> Self
 
fn from(value: PcfsApiError) -> Self
Source§impl From<SataProtocolError> for CatBridgeError
 
impl From<SataProtocolError> for CatBridgeError
Source§fn from(value: SataProtocolError) -> Self
 
fn from(value: SataProtocolError) -> Self
Source§impl From<SdioApiError> for CatBridgeError
 
impl From<SdioApiError> for CatBridgeError
Source§fn from(value: SdioApiError) -> Self
 
fn from(value: SdioApiError) -> Self
Source§impl From<SdioNetworkError> for CatBridgeError
 
impl From<SdioNetworkError> for CatBridgeError
Source§fn from(value: SdioNetworkError) -> Self
 
fn from(value: SdioNetworkError) -> Self
Source§impl From<SdioProtocolError> for CatBridgeError
 
impl From<SdioProtocolError> for CatBridgeError
Source§fn from(value: SdioProtocolError) -> Self
 
fn from(value: SdioProtocolError) -> Self
Source§impl IntoResponse for CatBridgeError
Available on crate features clients or servers only. 
impl IntoResponse for CatBridgeError
clients or servers only.Source§fn to_response(self) -> Result<Response, CatBridgeError>
 
fn to_response(self) -> Result<Response, CatBridgeError>
Auto Trait Implementations§
impl !Freeze for CatBridgeError
impl !RefUnwindSafe for CatBridgeError
impl Send for CatBridgeError
impl Sync for CatBridgeError
impl Unpin for CatBridgeError
impl !UnwindSafe for CatBridgeError
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
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<D> OwoColorize for D
 
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
    C: Color,
 
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
    C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
    C: Color,
 
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
    C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
 
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
 
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
 
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
 
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
 
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
 
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
 
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
 
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
 
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
 
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
 
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
 
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
 
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
 
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
 
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
 
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
 
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
 
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
 
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
 
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
 
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
 
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
 
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
 
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
 
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
 
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
 
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
 
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
 
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
 
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
 
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
 
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
 
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
 
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
 
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
 
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
 
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
 
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
 
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
 
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
 
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
 
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
 
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
 
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
 
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
 
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
    Color: DynColor,
 
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
    Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
    Color: DynColor,
 
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
    Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
    &self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
 
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
    &self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
 
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
 
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
 
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Source§impl<T> PolicyExt for Twhere
    T: ?Sized,
 
impl<T> PolicyExt for Twhere
    T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
    T: Display,
 
impl<T> ToStringFallible for Twhere
    T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
 
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.