Struct object_store_wasm::http::js_binding::WasmHttpStore
source · pub struct WasmHttpStore(/* private fields */);
Implementations§
source§impl WasmHttpStore
impl WasmHttpStore
pub fn new(url: String) -> Result<WasmHttpStore, JsError>
pub async fn get( &self, location: &str, options: Option<WasmGetOptions> ) -> Result<ReadableStream, JsError>
Trait Implementations§
source§impl From<WasmHttpStore> for JsValue
impl From<WasmHttpStore> for JsValue
source§fn from(value: WasmHttpStore) -> Self
fn from(value: WasmHttpStore) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for WasmHttpStore
impl FromWasmAbi for WasmHttpStore
source§impl IntoWasmAbi for WasmHttpStore
impl IntoWasmAbi for WasmHttpStore
source§impl LongRefFromWasmAbi for WasmHttpStore
impl LongRefFromWasmAbi for WasmHttpStore
source§impl OptionFromWasmAbi for WasmHttpStore
impl OptionFromWasmAbi for WasmHttpStore
source§impl OptionIntoWasmAbi for WasmHttpStore
impl OptionIntoWasmAbi for WasmHttpStore
source§impl RefFromWasmAbi for WasmHttpStore
impl RefFromWasmAbi for WasmHttpStore
§type Anchor = Ref<'static, WasmHttpStore>
type Anchor = Ref<'static, WasmHttpStore>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for WasmHttpStore
impl RefMutFromWasmAbi for WasmHttpStore
source§impl TryFromJsValue for WasmHttpStore
impl TryFromJsValue for WasmHttpStore
source§impl VectorFromWasmAbi for WasmHttpStore
impl VectorFromWasmAbi for WasmHttpStore
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmHttpStore]>
source§impl VectorIntoWasmAbi for WasmHttpStore
impl VectorIntoWasmAbi for WasmHttpStore
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmHttpStore]>) -> Self::Abi
source§impl WasmDescribeVector for WasmHttpStore
impl WasmDescribeVector for WasmHttpStore
Auto Trait Implementations§
impl Freeze for WasmHttpStore
impl !RefUnwindSafe for WasmHttpStore
impl Send for WasmHttpStore
impl Sync for WasmHttpStore
impl Unpin for WasmHttpStore
impl !UnwindSafe for WasmHttpStore
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> 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 moresource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.