pub struct N5HTTPFetch { /* private fields */ }
Implementations§
Source§impl N5HTTPFetch
Delegations to expose N5PromiseReader trait to WASM.
impl N5HTTPFetch
Delegations to expose N5PromiseReader trait to WASM.
pub fn get_version(&self) -> Promise
pub fn get_dataset_attributes(&self, path_name: &str) -> Promise
pub fn exists(&self, path_name: &str) -> Promise
pub fn dataset_exists(&self, path_name: &str) -> Promise
pub fn read_block( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Promise
pub fn list_attributes(&self, path_name: &str) -> Promise
pub fn block_etag( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Promise
pub fn read_block_with_etag( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Promise
Trait Implementations§
Source§impl Clone for N5HTTPFetch
impl Clone for N5HTTPFetch
Source§fn clone(&self) -> N5HTTPFetch
fn clone(&self) -> N5HTTPFetch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<N5HTTPFetch> for JsValue
impl From<N5HTTPFetch> for JsValue
Source§fn from(value: N5HTTPFetch) -> Self
fn from(value: N5HTTPFetch) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for N5HTTPFetch
impl FromWasmAbi for N5HTTPFetch
Source§impl IntoWasmAbi for N5HTTPFetch
impl IntoWasmAbi for N5HTTPFetch
Source§impl LongRefFromWasmAbi for N5HTTPFetch
impl LongRefFromWasmAbi for N5HTTPFetch
Source§impl N5AsyncEtagReader for N5HTTPFetch
impl N5AsyncEtagReader for N5HTTPFetch
fn block_etag( &self, path_name: &str, _data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Box<dyn Future<Item = Option<String>, Error = Error>>
fn read_block_with_etag<T>( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Box<dyn Future<Item = Option<(VecDataBlock<T>, Option<String>)>, Error = Error>>
Source§impl N5AsyncReader for N5HTTPFetch
impl N5AsyncReader for N5HTTPFetch
fn get_version(&self) -> Box<dyn Future<Item = Version, Error = Error>>
fn get_dataset_attributes( &self, path_name: &str, ) -> Box<dyn Future<Item = DatasetAttributes, Error = Error>>
fn exists(&self, path_name: &str) -> Box<dyn Future<Item = bool, Error = Error>>
fn read_block<T>( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Box<dyn Future<Item = Option<VecDataBlock<T>>, Error = Error>>
fn list( &self, _path_name: &str, ) -> Box<dyn Future<Item = Vec<String>, Error = Error>>
fn list_attributes( &self, path_name: &str, ) -> Box<dyn Future<Item = Value, Error = Error>>
fn dataset_exists( &self, path_name: &str, ) -> Box<dyn Future<Item = bool, Error = Error>>
Source§impl OptionFromWasmAbi for N5HTTPFetch
impl OptionFromWasmAbi for N5HTTPFetch
Source§impl OptionIntoWasmAbi for N5HTTPFetch
impl OptionIntoWasmAbi for N5HTTPFetch
Source§impl RefFromWasmAbi for N5HTTPFetch
impl RefFromWasmAbi for N5HTTPFetch
Source§type Anchor = RcRef<N5HTTPFetch>
type Anchor = RcRef<N5HTTPFetch>
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 N5HTTPFetch
impl RefMutFromWasmAbi for N5HTTPFetch
Source§impl TryFromJsValue for N5HTTPFetch
impl TryFromJsValue for N5HTTPFetch
Source§impl VectorFromWasmAbi for N5HTTPFetch
impl VectorFromWasmAbi for N5HTTPFetch
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[N5HTTPFetch]>
Source§impl VectorIntoJsValue for N5HTTPFetch
impl VectorIntoJsValue for N5HTTPFetch
fn vector_into_jsvalue(vector: Box<[N5HTTPFetch]>) -> JsValue
Source§impl VectorIntoWasmAbi for N5HTTPFetch
impl VectorIntoWasmAbi for N5HTTPFetch
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[N5HTTPFetch]>) -> Self::Abi
Source§impl WasmDescribeVector for N5HTTPFetch
impl WasmDescribeVector for N5HTTPFetch
impl SupportsConstructor for N5HTTPFetch
impl SupportsInstanceProperty for N5HTTPFetch
impl SupportsStaticProperty for N5HTTPFetch
Auto Trait Implementations§
impl Freeze for N5HTTPFetch
impl RefUnwindSafe for N5HTTPFetch
impl Send for N5HTTPFetch
impl Sync for N5HTTPFetch
impl Unpin for N5HTTPFetch
impl UnwindSafe for N5HTTPFetch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> N5PromiseEtagReader for Twhere
T: N5AsyncEtagReader,
impl<T> N5PromiseEtagReader for Twhere
T: N5AsyncEtagReader,
fn block_etag( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Promise
fn read_block_with_etag( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Promise
Source§impl<T> N5PromiseReader for Twhere
T: N5AsyncReader,
impl<T> N5PromiseReader for Twhere
T: N5AsyncReader,
Source§fn get_version(&self) -> Promise
fn get_version(&self) -> Promise
Get the N5 specification version of the container.
fn get_dataset_attributes(&self, path_name: &str) -> Promise
fn exists(&self, path_name: &str) -> Promise
fn dataset_exists(&self, path_name: &str) -> Promise
fn read_block( &self, path_name: &str, data_attrs: &DatasetAttributes, grid_position: Vec<i64>, ) -> Promise
fn list_attributes(&self, path_name: &str) -> Promise
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.