Struct stremio_core::addon_transport::AddonHTTPTransport
source · pub struct AddonHTTPTransport<E: Env> {
transport_url: Url,
env: PhantomData<E>,
}
Fields§
§transport_url: Url
§env: PhantomData<E>
Implementations§
Trait Implementations§
source§impl<E: Env> AddonTransport for AddonHTTPTransport<E>
impl<E: Env> AddonTransport for AddonHTTPTransport<E>
source§fn resource(&self, path: &ResourcePath) -> TryEnvFuture<ResourceResponse>
fn resource(&self, path: &ResourcePath) -> TryEnvFuture<ResourceResponse>
Request a resource from the addon.
This will encode all components with utf8_percent_encode(.., URI_COMPONENT_ENCODE_SET)
and the ResourcePath.extra
properties if they are not empty
with query_params_encode
.
fn manifest(&self) -> TryEnvFuture<Manifest>
Auto Trait Implementations§
impl<E> Freeze for AddonHTTPTransport<E>
impl<E> RefUnwindSafe for AddonHTTPTransport<E>where
E: RefUnwindSafe,
impl<E> Send for AddonHTTPTransport<E>where
E: Send,
impl<E> Sync for AddonHTTPTransport<E>where
E: Sync,
impl<E> Unpin for AddonHTTPTransport<E>where
E: Unpin,
impl<E> UnwindSafe for AddonHTTPTransport<E>where
E: UnwindSafe,
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