pub struct Compmd { /* private fields */ }Expand description
The bundle the app serves, where, and the store of the packs it fetches, as the app’s state (app.compmd()). The
bundle and the store are shared, so the processor can keep them as its packs (packs).
Implementations§
Source§impl Compmd
impl Compmd
Sourcepub fn origin(&self) -> Option<&str>
pub fn origin(&self) -> Option<&str>
Where the bundle is served, as the page has it in __COMPMD__: compmd://localhost, or
http://compmd.localhost on Windows and Android.
Sourcepub fn respond<B>(&self, request: &Request<B>) -> Response<Vec<u8>>
pub fn respond<B>(&self, request: &Request<B>) -> Response<Vec<u8>>
The answer to a webview’s request on the scheme: under registry/, the proxy’s, when the bundle fetches
through the host (it blocks on the registry, so the scheme answers it on a thread of its own); otherwise the
serving contract (compmd-host’s respond), or a 404 saying why when there is no bundle, with the
contract’s refusal headers, so the page can read it.
Auto Trait Implementations§
impl !RefUnwindSafe for Compmd
impl !UnwindSafe for Compmd
impl Forget for Compmd
impl Freeze for Compmdwhere
*const ArcInner<Bundle> is !null: Freeze,
PhantomData<ArcInner<Bundle>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn Store> is !null: Freeze,
PhantomData<ArcInner<dyn Store>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Denied>: Freeze,
*const ArcInner<Config> is !null: Freeze,
PhantomData<ArcInner<Config>>: Freeze,
*const ArcInner<ConnectionPool> is !null: Freeze,
PhantomData<ArcInner<ConnectionPool>>: Freeze,
*const ArcInner<dyn Resolver> is !null: Freeze,
PhantomData<ArcInner<dyn Resolver>>: Freeze,
*const ArcInner<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send>>: Freeze,
impl Move for Compmd
impl Send for Compmdwhere
Arc<Bundle>: Send,
RawVecInner: Send,
Arc<dyn Store>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
Arc<Config>: Send,
Arc<ConnectionPool>: Send,
Arc<dyn Resolver>: Send,
Arc<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send>: Send,
impl Sync for Compmdwhere
Arc<Bundle>: Sync,
RawVecInner: Sync,
Arc<dyn Store>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
Arc<Config>: Sync,
Arc<ConnectionPool>: Sync,
Arc<dyn Resolver>: Sync,
Arc<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send>: Sync,
impl Unpin for Compmdwhere
Arc<Bundle>: Unpin,
*const u8 is !null: Unpin,
Arc<dyn Store>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Arc<Config>: Unpin,
Arc<ConnectionPool>: Unpin,
Arc<dyn Resolver>: Unpin,
Arc<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send>: Unpin,
impl UnsafeUnpin for Compmdwhere
*const ArcInner<Bundle> is !null: UnsafeUnpin,
PhantomData<ArcInner<Bundle>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn Store> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Store>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Denied>: UnsafeUnpin,
*const ArcInner<Config> is !null: UnsafeUnpin,
PhantomData<ArcInner<Config>>: UnsafeUnpin,
*const ArcInner<ConnectionPool> is !null: UnsafeUnpin,
PhantomData<ArcInner<ConnectionPool>>: UnsafeUnpin,
*const ArcInner<dyn Resolver> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Resolver>>: UnsafeUnpin,
*const ArcInner<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&ConnectionDetails<'_>) -> Result<Box<dyn Transport>, Error> + Sync + Send>>: 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