pub struct ProviderAdministration(/* private fields */);Expand description
Process-scoped authority to administer providers, independent of inference access.
Implementations§
Source§impl ProviderAdministration
impl ProviderAdministration
Sourcepub fn new(backend: Arc<dyn ProviderAdmin>) -> Self
pub fn new(backend: Arc<dyn ProviderAdmin>) -> Self
Bind a backend whose session the process has explicitly authorized.
pub fn is_available(&self) -> bool
Sourcepub fn get(&self) -> Result<Arc<dyn ProviderAdmin>, ModelError>
pub fn get(&self) -> Result<Arc<dyn ProviderAdmin>, ModelError>
Obtain this process’s authority, never an ambient or another mount’s session.
Sourcepub fn from_launcher() -> Result<Self, ModelError>
pub fn from_launcher() -> Result<Self, ModelError>
Trait Implementations§
Source§impl Clone for ProviderAdministration
impl Clone for ProviderAdministration
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderAdministration
impl !UnwindSafe for ProviderAdministration
impl Forget for ProviderAdministration
impl Freeze for ProviderAdministrationwhere
*const ArcInner<dyn ProviderAdmin> is !null: Freeze,
PhantomData<ArcInner<dyn ProviderAdmin>>: Freeze,
impl Move for ProviderAdministration
impl Send for ProviderAdministration
impl Sync for ProviderAdministration
impl Unpin for ProviderAdministration
impl UnsafeUnpin for ProviderAdministrationwhere
*const ArcInner<dyn ProviderAdmin> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ProviderAdmin>>: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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