Struct etwin_dinoparc_client::mem::MemDinoparcClient [−][src]
pub struct MemDinoparcClient<TyClock> { /* fields omitted */ }
Implementations
pub fn create_user(
&self,
server: DinoparcServer,
id: DinoparcUserId,
username: DinoparcUsername,
password: DinoparcPassword
)
Trait Implementations
fn get_preferred_exchange_with<'life0, 'async_trait>(
&'life0 self,
_server: DinoparcServer
) -> Pin<Box<dyn Future<Output = [DinoparcUserId; 2]> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_preferred_exchange_with<'life0, 'async_trait>(
&'life0 self,
_server: DinoparcServer
) -> Pin<Box<dyn Future<Output = [DinoparcUserId; 2]> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns the id of two distinct existing users on the provided Dinoparc server.
These users should be used when an exchangeWith
query is required to fetch the
full Dinoz list but the specific target does not matter. Read more
fn create_session<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 DinoparcCredentials
) -> Pin<Box<dyn Future<Output = Result<DinoparcSession, AnyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn test_session<'life0, 'life1, 'async_trait>(
&'life0 self,
server: DinoparcServer,
key: &'life1 DinoparcSessionKey
) -> Pin<Box<dyn Future<Output = Result<Option<DinoparcSession>, AnyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_dinoz<'life0, 'life1, 'async_trait>(
&'life0 self,
_session: &'life1 DinoparcSession,
_id: DinoparcDinozId
) -> Pin<Box<dyn Future<Output = Result<DinoparcDinozResponse, AnyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_exchange_with<'life0, 'life1, 'async_trait>(
&'life0 self,
_session: &'life1 DinoparcSession,
_other_user: DinoparcUserId
) -> Pin<Box<dyn Future<Output = Result<DinoparcExchangeWithResponse, AnyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_inventory<'life0, 'life1, 'async_trait>(
&'life0 self,
_session: &'life1 DinoparcSession
) -> Pin<Box<dyn Future<Output = Result<DinoparcInventoryResponse, AnyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_collection<'life0, 'life1, 'async_trait>(
&'life0 self,
_session: &'life1 DinoparcSession
) -> Pin<Box<dyn Future<Output = Result<DinoparcCollectionResponse, AnyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<TyClock> RefUnwindSafe for MemDinoparcClient<TyClock> where
TyClock: RefUnwindSafe,
impl<TyClock> Send for MemDinoparcClient<TyClock> where
TyClock: Send,
impl<TyClock> Sync for MemDinoparcClient<TyClock> where
TyClock: Sync,
impl<TyClock> Unpin for MemDinoparcClient<TyClock> where
TyClock: Unpin,
impl<TyClock> UnwindSafe for MemDinoparcClient<TyClock> where
TyClock: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more