pub struct HostExtensions<'a, H: ?Sized> { /* private fields */ }Expand description
A collection of all extensions supported for a given HostHandlers type.
Host can declare the different extensions they support by using the
register method on this struct, during a call to
declare_extensions.
Implementations§
Source§impl<'a, H: HostHandlers> HostExtensions<'a, H>
impl<'a, H: HostHandlers> HostExtensions<'a, H>
Sourcepub fn register<E: ExtensionImplementation<H, ExtensionSide = HostExtensionSide>>(
&mut self,
) -> &mut Self
pub fn register<E: ExtensionImplementation<H, ExtensionSide = HostExtensionSide>>( &mut self, ) -> &mut Self
Adds a given extension implementation to the list of extensions this plugin supports.
Auto Trait Implementations§
impl<'a, H> !Send for HostExtensions<'a, H>
impl<'a, H> !Sync for HostExtensions<'a, H>
impl<'a, H> Freeze for HostExtensions<'a, H>
impl<'a, H> RefUnwindSafe for HostExtensions<'a, H>
impl<'a, H> Unpin for HostExtensions<'a, H>
impl<'a, H> UnsafeUnpin for HostExtensions<'a, H>
impl<'a, H> UnwindSafe for HostExtensions<'a, H>
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