pub struct BackendRegistry { /* private fields */ }Implementations§
Source§impl BackendRegistry
impl BackendRegistry
pub fn new() -> Self
pub fn with_probe_ttl(probe_ttl: Duration) -> Self
pub async fn register_adapter( &self, adapter_key: impl Into<String>, adapter: Arc<dyn BackendAdapter>, )
pub async fn register_backend(&self, spec: BackendSpec)
pub fn invalidate_backend(&self, backend_id: &str)
pub async fn backend_spec(&self, backend_id: &str) -> Option<BackendSpec>
pub async fn all_backend_specs(&self) -> Vec<BackendSpec>
pub async fn has_adapter(&self, adapter_key: &str) -> bool
pub fn cached_capability_profile( &self, backend_id: &str, ) -> Option<CapabilityProfile>
pub async fn adapter_for( &self, spec: &BackendSpec, ) -> Result<Arc<dyn BackendAdapter>>
pub async fn probe_backend(&self, backend_id: &str) -> Result<CapabilityProfile>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BackendRegistry
impl !RefUnwindSafe for BackendRegistry
impl Send for BackendRegistry
impl Sync for BackendRegistry
impl Unpin for BackendRegistry
impl UnsafeUnpin for BackendRegistry
impl !UnwindSafe for BackendRegistry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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