pub enum EnvironmentAny {
Local(Environment),
Remote(RemoteEnvironment),
}Variants§
Local(Environment)
Remote(RemoteEnvironment)
Implementations§
Source§impl EnvironmentAny
impl EnvironmentAny
pub fn open_local( path: &Path, builder: EnvironmentBuilder, ) -> Result<Self, ClientError>
pub async fn open_remote( path: &Path, builder: EnvironmentBuilder, remote: String, deadline: Duration, ) -> Result<Self, ClientError>
pub async fn open_with_defaults( url: &str, defaults: EnvironmentBuilder, ) -> Result<Self, ClientError>
pub async fn open_url_with_defaults( url: &str, defaults: EnvironmentBuilder, ) -> Result<Self, ClientError>
pub async fn open(url: &str) -> 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>
pub async fn info(&self) -> Result<Info, ClientError>
pub fn env_kind(&self) -> EnvironmentKind
pub fn is_write_map(&self) -> bool
pub async fn is_read_write(&self) -> Result<bool, ClientError>
pub async fn is_read_only(&self) -> Result<bool, ClientError>
Trait Implementations§
Source§impl Clone for EnvironmentAny
impl Clone for EnvironmentAny
Source§fn clone(&self) -> EnvironmentAny
fn clone(&self) -> EnvironmentAny
Returns a duplicate 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