Struct spacetimedb_standalone::StandaloneEnv
source · pub struct StandaloneEnv { /* private fields */ }
Implementations§
Trait Implementations§
source§impl ControlStateReadAccess for StandaloneEnv
impl ControlStateReadAccess for StandaloneEnv
fn get_node_id(&self) -> Option<u64>
fn get_node_by_id(&self, node_id: u64) -> Result<Option<Node>>
fn get_nodes(&self) -> Result<Vec<Node>>
fn get_database_by_id(&self, id: u64) -> Result<Option<Database>>
fn get_database_by_address(&self, address: &Address) -> Result<Option<Database>>
fn get_databases(&self) -> Result<Vec<Database>>
fn get_database_instance_by_id( &self, id: u64 ) -> Result<Option<DatabaseInstance>>
fn get_database_instances(&self) -> Result<Vec<DatabaseInstance>>
fn get_leader_database_instance_by_database( &self, database_id: u64 ) -> Option<DatabaseInstance>
fn get_identities_for_email(&self, email: &str) -> Result<Vec<IdentityEmail>>
fn get_emails_for_identity( &self, identity: &Identity ) -> Result<Vec<IdentityEmail>>
fn get_recovery_codes(&self, email: &str) -> Result<Vec<RecoveryCode>>
fn get_energy_balance( &self, identity: &Identity ) -> Result<Option<EnergyBalance>>
fn lookup_address(&self, domain: &DomainName) -> Result<Option<Address>>
fn reverse_lookup(&self, address: &Address) -> Result<Vec<DomainName>>
source§impl ControlStateWriteAccess for StandaloneEnv
impl ControlStateWriteAccess for StandaloneEnv
fn create_address<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Address>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§fn publish_database<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
publisher_address: Option<Address>,
spec: DatabaseDef
) -> Pin<Box<dyn Future<Output = Result<Option<UpdateDatabaseResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish_database<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
publisher_address: Option<Address>,
spec: DatabaseDef
) -> Pin<Box<dyn Future<Output = Result<Option<UpdateDatabaseResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Publish a database acc. to
DatabaseDef
. Read morefn delete_database<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
address: &'life2 Address
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_identity<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Identity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_email<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
email: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn insert_recovery_code<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_identity: &'life1 Identity,
email: &'life2 str,
code: RecoveryCode
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_energy<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
amount: EnergyQuanta
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn withdraw_energy<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
amount: EnergyQuanta
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_tld<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
tld: Tld
) -> Pin<Box<dyn Future<Output = Result<RegisterTldResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_dns_record<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
identity: &'life1 Identity,
domain: &'life2 DomainName,
address: &'life3 Address
) -> Pin<Box<dyn Future<Output = Result<InsertDomainResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
source§impl NodeDelegate for StandaloneEnv
impl NodeDelegate for StandaloneEnv
source§fn sendgrid_controller(&self) -> Option<&SendGridController>
fn sendgrid_controller(&self) -> Option<&SendGridController>
Standalone SpacetimeDB does not support SendGrid as a means to reissue authentication tokens.
fn gather_metrics(&self) -> Vec<MetricFamily>
fn database_instance_context_controller( &self ) -> &DatabaseInstanceContextController
fn host_controller(&self) -> &Arc<HostController>
fn client_actor_index(&self) -> &ClientActorIndex
source§fn public_key(&self) -> &DecodingKey
fn public_key(&self) -> &DecodingKey
Return a JWT decoding key for verifying credentials.
source§fn public_key_bytes(&self) -> &[u8] ⓘ
fn public_key_bytes(&self) -> &[u8] ⓘ
Return the public key used to verify JWTs, as the bytes of a PEM public key file. Read more
source§fn private_key(&self) -> &EncodingKey
fn private_key(&self) -> &EncodingKey
Return a JWT encoding key for signing credentials.
Auto Trait Implementations§
impl !Freeze for StandaloneEnv
impl !RefUnwindSafe for StandaloneEnv
impl Send for StandaloneEnv
impl Sync for StandaloneEnv
impl Unpin for StandaloneEnv
impl !UnwindSafe for StandaloneEnv
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