pub struct ProviderRegistry { /* private fields */ }Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
pub fn new() -> Self
pub fn install_file<P: FileProvider + 'static>(&mut self, provider: P)
pub fn set_file(&mut self, provider: Option<Rc<dyn FileProvider>>)
pub fn install_socket<P: SocketProvider + 'static>(&mut self, provider: P)
pub fn install_kernel(&mut self, provider: Rc<KernelProvider>)
pub fn install_process(&mut self)
pub fn install_promise<P: PromiseProvider + 'static>(&mut self, provider: P)
pub fn promise(&self) -> Rc<dyn PromiseProvider>
pub fn file(&self) -> Option<Rc<dyn FileProvider>>
pub fn socket(&self) -> Option<Rc<dyn SocketProvider>>
pub fn kernel(&self) -> Option<Rc<KernelProvider>>
pub fn process(&self) -> bool
pub fn capabilities(&self) -> ProviderCapabilities
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderRegistry
impl !Send for ProviderRegistry
impl !Sync for ProviderRegistry
impl !UnwindSafe for ProviderRegistry
impl Freeze for ProviderRegistry
impl Unpin for ProviderRegistry
impl UnsafeUnpin for ProviderRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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