pub enum DataSrcError {
FailToRegisterGlobalDataSrc {
name: Arc<str>,
},
FailToSetupGlobalDataSrcs {
errors: Vec<(Arc<str>, Err)>,
},
DuringSetupGlobalDataSrcs,
AlreadySetupGlobalDataSrcs,
FailToCastDataConn {
name: Arc<str>,
target_type: &'static str,
},
FailToCreateDataConn {
name: Arc<str>,
data_conn_type: &'static str,
},
NotFoundDataSrcToCreateDataConn {
name: Arc<str>,
data_conn_type: &'static str,
},
}Available on crate feature
tokio only.Expand description
Represents errors that can occur during data source operations.
Variants§
FailToRegisterGlobalDataSrc
An error indicating a failure to register a global data source. This can happen if the global data source manager is in an invalid state.
FailToSetupGlobalDataSrcs
An error indicating that one or more global data sources failed during their setup process.
Fields
DuringSetupGlobalDataSrcs
An error indicating that a global data source setup is currently in progress.
AlreadySetupGlobalDataSrcs
An error indicating that global data sources have already been set up.
FailToCastDataConn
An error indicating that a data connection could not be cast to the target type.
Fields
FailToCreateDataConn
An error indicating that a data connection could not be created by its data source.
Fields
NotFoundDataSrcToCreateDataConn
An error indicating that no data source was found for the requested data connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataSrcError
impl !RefUnwindSafe for DataSrcError
impl Send for DataSrcError
impl Sync for DataSrcError
impl Unpin for DataSrcError
impl UnsafeUnpin for DataSrcError
impl UnwindSafe for DataSrcError
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