pub struct OperatorRegistry { /* private fields */ }Expand description
Global registry that maps schemes to OperatorFactory functions.
Implementations§
Source§impl OperatorRegistry
impl OperatorRegistry
Sourcepub fn schemes(&self) -> HashSet<String>
pub fn schemes(&self) -> HashSet<String>
Return the set of schemes currently registered.
For the global registry returned by OperatorRegistry::get, this is
exactly the set of schemes that Operator::from_uri can construct, as
determined by the compiled-in services-* features.
use opendal_core::OperatorRegistry;
let schemes = OperatorRegistry::get().schemes();
assert!(schemes.contains("memory"));Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OperatorRegistry
impl RefUnwindSafe for OperatorRegistry
impl Send for OperatorRegistry
impl Sync for OperatorRegistry
impl Unpin for OperatorRegistry
impl UnsafeUnpin for OperatorRegistry
impl UnwindSafe for OperatorRegistry
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