Struct dbcrossbarlib::TemporaryStorage
source · pub struct TemporaryStorage { /* private fields */ }
Expand description
Provides different types of temporary storage.
Implementations
sourceimpl TemporaryStorage
impl TemporaryStorage
sourcepub fn new(locations: Vec<String>) -> Self
pub fn new(locations: Vec<String>) -> Self
Create a new TemporaryStorage
object. The locations
should be a list
of locator-like strings, such as gs://bucket/tempdir
or
bigquery:project:dataset
.
sourcepub fn with_config(
locations: Vec<String>,
config: &Configuration
) -> Result<Self>
pub fn with_config(
locations: Vec<String>,
config: &Configuration
) -> Result<Self>
Like new
, but also use temporaries from config
.
sourcepub fn find_scheme<'a, 'b>(&'a self, scheme: &'b str) -> Option<&'a str>
pub fn find_scheme<'a, 'b>(&'a self, scheme: &'b str) -> Option<&'a str>
Find a location with the specified scheme.
sourcepub fn random_tag() -> String
pub fn random_tag() -> String
Generate a random alphanumeric tag for use in temporary directory names.
Trait Implementations
sourceimpl Clone for TemporaryStorage
impl Clone for TemporaryStorage
sourcefn clone(&self) -> TemporaryStorage
fn clone(&self) -> TemporaryStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for TemporaryStorage
impl Send for TemporaryStorage
impl Sync for TemporaryStorage
impl Unpin for TemporaryStorage
impl UnwindSafe for TemporaryStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more