pub enum BridgeError {
Refused(Refusal),
Source(String),
NotBridgeObject(String),
Integrity(String),
Io(Error),
}Expand description
Unified bridge error.
Variants§
Refused(Refusal)
A spec’d policy refusal (see Refusal).
Source(String)
Reading or decoding a source mkit object failed.
NotBridgeObject(String)
Reconstruction input is not a bridge-emitted git object
(missing/duplicate/unknown mkit-* headers, malformed body,
non-bridge mode bytes, …).
Integrity(String)
Reconstructed bytes failed an integrity check (BLAKE3 linkage or round-trip mismatch).
Io(Error)
Filesystem error from the loose-object writer or map cache.
Trait Implementations§
Source§impl Debug for BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl Error for BridgeError
impl Error for BridgeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for BridgeError
impl From<Error> for BridgeError
Auto Trait Implementations§
impl !RefUnwindSafe for BridgeError
impl !UnwindSafe for BridgeError
impl Freeze for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl UnsafeUnpin for BridgeError
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
Mutably borrows from an owned value. Read more