[][src]Trait acid_store::store::Open

pub trait Open {
    type Config;
    fn open(config: Self::Config, options: OpenOption) -> Result<Self>
    where
        Self: Sized
; }

A resource which can be opened.

Associated Types

type Config

The type of the configuration used to open a resource.

Loading content...

Required methods

fn open(config: Self::Config, options: OpenOption) -> Result<Self> where
    Self: Sized

Open this resource using the given config and open options.

Errors

  • Error::NotFound: The resource does not exist and OpenOption::CREATE and OpenOption::CREATE_NEW were not passed.
  • Error::UnsupportedFormat: The resource exists but is an unsupported format.
  • Error::AlreadyExists: The resource already exists and OpenOption::CREATE_NEW was passed.
  • Error::Io: An I/O error occurred.
  • Error::Store: An error occurred with the underlying data store.
Loading content...

Implementors

impl Open for DirectoryStore[src]

type Config = PathBuf

impl Open for RedisStore[src]

type Config = ConnectionInfo

impl Open for S3Store[src]

type Config = Bucket

impl Open for SqliteStore[src]

type Config = PathBuf

Loading content...