pub struct Remote { /* private fields */ }
Implementations§
Source§impl Remote
impl Remote
pub fn new(endpoint: Url, token: Token) -> Remote
pub async fn get_state(&self, from: u64) -> Result<Vec<u8>>
pub async fn stream_state( &self, from: u64, ) -> Result<impl Stream<Item = Result<WrappedAction>> + use<>>
pub async fn apply(&self, action: &Action) -> Result<u64>
pub async fn get_token(&self) -> Result<TokenInfo>
pub async fn create_token(&self, args: &TokenPostArgs) -> Result<Token>
pub async fn delete_token(&self, args: &TokenDeleteArgs) -> Result<()>
pub async fn fastsync(&self) -> Result<StateSync>
pub async fn stream_fastsync( &self, ) -> Result<impl Stream<Item = Result<StateSync>>>
pub async fn get_balance(&self, player: &PlayerId) -> Result<Coins>
pub async fn get_assets( &self, player: &PlayerId, ) -> Result<HashMap<AssetId, u64>>
pub async fn itemised_audit(&self) -> Result<ItemisedAudit>
pub async fn price_history(&self, asset: &AssetId) -> Result<Vec<PriceSummary>>
Auto Trait Implementations§
impl Freeze for Remote
impl !RefUnwindSafe for Remote
impl Send for Remote
impl Sync for Remote
impl Unpin for Remote
impl !UnwindSafe for Remote
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 more