pub enum TypedError<NK, EK, NT, ET> {
Show 26 variants
NodeKeyRemoved(NK),
EdgeKeyRemoved(EK),
NodeIdCollision(NK),
EdgeIdCollision(EK),
NodeIdMissing(NK),
EdgeIdMissing(EK),
MissingNode(NK),
MissingEdge(EK),
InvalidEdgeType(ET, NT, NT, DisAllowedEdge),
InvalidNodeType(NT, DisAllowedNode),
InvalidInternalState,
InvalidSchemaName(String, String),
UnrecognizedNodeType(String, Vec<NT>),
UnrecognizedEdgeType(String, Vec<ET>),
InvalidSchemaVersion(String, String),
DownCastFailed(String, String),
InconsistentNodeIds(NK, NK),
InconsistentEdgeIds(EK, EK),
MissingNodeKey(NodeKey),
MissingEdgeKey(EdgeKey),
InvalidEdgeMove(EK, EK),
InvalidLowerBound(NK, NT, String),
SerdeJsonError(Error),
UpgradeError(UpgradeError),
Io(Error),
Infallible(Infallible),
}
Expand description
Combined error enum.
Variants§
NodeKeyRemoved(NK)
EdgeKeyRemoved(EK)
NodeIdCollision(NK)
EdgeIdCollision(EK)
NodeIdMissing(NK)
EdgeIdMissing(EK)
MissingNode(NK)
MissingEdge(EK)
InvalidEdgeType(ET, NT, NT, DisAllowedEdge)
InvalidNodeType(NT, DisAllowedNode)
InvalidInternalState
InvalidSchemaName(String, String)
UnrecognizedNodeType(String, Vec<NT>)
UnrecognizedEdgeType(String, Vec<ET>)
InvalidSchemaVersion(String, String)
DownCastFailed(String, String)
InconsistentNodeIds(NK, NK)
InconsistentEdgeIds(EK, EK)
MissingNodeKey(NodeKey)
MissingEdgeKey(EdgeKey)
InvalidEdgeMove(EK, EK)
InvalidLowerBound(NK, NT, String)
SerdeJsonError(Error)
UpgradeError(UpgradeError)
Io(Error)
Infallible(Infallible)
Implementations§
Source§impl<NK, EK, NT, ET> TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> TypedError<NK, EK, NT, ET>
pub fn to_generic<S, N, E>(self, s: &S) -> GenericTypedError<NK, EK>
pub fn map<NK1, EK1, NT1, ET1, NKF, EKF, NTF, ETF>( self, nk_map: NKF, ek_map: EKF, nt_map: NTF, et_map: ETF, ) -> TypedError<NK1, EK1, NT1, ET1>
Trait Implementations§
Source§impl<NK, EK, NT, ET> Display for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> Display for TypedError<NK, EK, NT, ET>
Source§impl<NK, EK, NT, ET> Error for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> Error for TypedError<NK, EK, NT, ET>
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<NK, EK, NT, ET> From<Error> for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> From<Error> for TypedError<NK, EK, NT, ET>
Source§impl<NK, EK, NT, ET> From<Error> for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> From<Error> for TypedError<NK, EK, NT, ET>
Source§impl<NK, EK, NT, ET> From<Infallible> for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> From<Infallible> for TypedError<NK, EK, NT, ET>
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl<NK, EK, NT, ET> From<UpgradeError> for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> From<UpgradeError> for TypedError<NK, EK, NT, ET>
Source§fn from(source: UpgradeError) -> Self
fn from(source: UpgradeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<NK, EK, NT, ET> Freeze for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> !RefUnwindSafe for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> Send for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> Sync for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> Unpin for TypedError<NK, EK, NT, ET>
impl<NK, EK, NT, ET> !UnwindSafe for TypedError<NK, EK, NT, ET>
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
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>
Converts
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>
Converts
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