Enum StudyCreateOutcome
pub enum StudyCreateOutcome {
Created(StudyId),
Occupied,
}Expand description
The result of an atomic StudyCatalog::create_if_empty operation.
Variants§
Created(StudyId)
The caller created the only study in an empty catalog.
Occupied
The catalog already contained at least one study and was unchanged.
Trait Implementations§
§impl Clone for StudyCreateOutcome
impl Clone for StudyCreateOutcome
§fn clone(&self) -> StudyCreateOutcome
fn clone(&self) -> StudyCreateOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StudyCreateOutcome
§impl Debug for StudyCreateOutcome
impl Debug for StudyCreateOutcome
impl Eq for StudyCreateOutcome
§impl PartialEq for StudyCreateOutcome
impl PartialEq for StudyCreateOutcome
impl StructuralPartialEq for StudyCreateOutcome
Auto Trait Implementations§
impl Freeze for StudyCreateOutcome
impl RefUnwindSafe for StudyCreateOutcome
impl Send for StudyCreateOutcome
impl Sync for StudyCreateOutcome
impl Unpin for StudyCreateOutcome
impl UnsafeUnpin for StudyCreateOutcome
impl UnwindSafe for StudyCreateOutcome
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