pub enum FindObjectsError {
InvalidObjectType(InvalidObjectType),
MissingObject(MissingObject),
FindObject {
oid: Oid,
source: Box<dyn Error + Send + Sync>,
},
FindReference {
refname: Namespaced<'static>,
source: Box<dyn Error + Send + Sync>,
},
Other {
source: Box<dyn Error + Send + Sync>,
},
}Expand description
Error produced by the FindObjects::find_objects method.
Variants§
Implementations§
Source§impl FindObjectsError
impl FindObjectsError
pub fn find_object<E>(oid: Oid, err: E) -> FindObjectsError
pub fn find_reference<E>( refname: Namespaced<'static>, err: E, ) -> FindObjectsError
pub fn missing_object<E>(did: Did, oid: Oid, err: E) -> FindObjectsError
pub fn invalid_object_type( did: Did, oid: Oid, kind: Option<String>, ) -> FindObjectsError
pub fn other<E>(err: E) -> FindObjectsError
Trait Implementations§
Source§impl Debug for FindObjectsError
impl Debug for FindObjectsError
Source§impl Display for FindObjectsError
impl Display for FindObjectsError
Source§impl Error for FindObjectsError
impl Error for FindObjectsError
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<FindObjectsError> for RepositoryError
impl From<FindObjectsError> for RepositoryError
Source§fn from(source: FindObjectsError) -> RepositoryError
fn from(source: FindObjectsError) -> RepositoryError
Converts to this type from the input type.
Source§impl From<InvalidObjectType> for FindObjectsError
impl From<InvalidObjectType> for FindObjectsError
Source§fn from(source: InvalidObjectType) -> FindObjectsError
fn from(source: InvalidObjectType) -> FindObjectsError
Converts to this type from the input type.
Source§impl From<MissingObject> for FindObjectsError
impl From<MissingObject> for FindObjectsError
Source§fn from(source: MissingObject) -> FindObjectsError
fn from(source: MissingObject) -> FindObjectsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FindObjectsError
impl !RefUnwindSafe for FindObjectsError
impl Send for FindObjectsError
impl Sync for FindObjectsError
impl Unpin for FindObjectsError
impl !UnwindSafe for FindObjectsError
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