pub enum EnvironmentAny {
Local(Environment),
Remote(RemoteEnvironment),
}Variants§
Local(Environment)
Remote(RemoteEnvironment)
Implementations§
Source§impl EnvironmentAny
impl EnvironmentAny
pub async fn open(url: &Url) -> Result<Self, ClientError>
pub async fn begin_ro_txn(&self) -> Result<TransactionAny<RO>, ClientError>
pub async fn begin_rw_txn(&self) -> Result<TransactionAny<RW>, ClientError>
pub async fn sync(&self, force: bool) -> Result<bool, ClientError>
pub async fn stat(&self) -> Result<Stat, ClientError>
Trait Implementations§
Source§impl Clone for EnvironmentAny
impl Clone for EnvironmentAny
Source§fn clone(&self) -> EnvironmentAny
fn clone(&self) -> EnvironmentAny
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 moreAuto Trait Implementations§
impl Freeze for EnvironmentAny
impl !RefUnwindSafe for EnvironmentAny
impl Send for EnvironmentAny
impl Sync for EnvironmentAny
impl Unpin for EnvironmentAny
impl !UnwindSafe for EnvironmentAny
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