pub enum CreationMode {
CreateExclusive,
PurgeAndCreate,
OpenOrCreate,
}Expand description
Describes how new resources like crate::file::File, crate::shared_memory::SharedMemory
or others should be created.
Variants§
CreateExclusive
Create resource, if its already existing fail.
PurgeAndCreate
Always remove existing resource and override it with new one
OpenOrCreate
Either open the new resource or create it when it is not existing
Implementations§
Trait Implementations§
Source§impl Clone for CreationMode
impl Clone for CreationMode
Source§fn clone(&self) -> CreationMode
fn clone(&self) -> CreationMode
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 moreSource§impl Debug for CreationMode
impl Debug for CreationMode
Source§impl Default for CreationMode
impl Default for CreationMode
Source§fn default() -> CreationMode
fn default() -> CreationMode
Returns the “default value” for a type. Read more
Source§impl Display for CreationMode
impl Display for CreationMode
Source§impl Hash for CreationMode
impl Hash for CreationMode
Source§impl PartialEq for CreationMode
impl PartialEq for CreationMode
impl Copy for CreationMode
impl Eq for CreationMode
impl StructuralPartialEq for CreationMode
Auto Trait Implementations§
impl Freeze for CreationMode
impl RefUnwindSafe for CreationMode
impl Send for CreationMode
impl Sync for CreationMode
impl Unpin for CreationMode
impl UnwindSafe for CreationMode
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