pub struct DefaultCmdCtx { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CmdCtx for DefaultCmdCtx
impl CmdCtx for DefaultCmdCtx
fn now_timestamp(&self) -> f64
fn today_timestamp(&self) -> i64
fn next_id(&mut self) -> String
fn commit_changes( &mut self, changes: BTreeMap<String, WireObject>, ancestor_index: Option<i64>, ) -> Result<i64>
fn current_head_index(&self) -> i64
fn today(&self) -> DateTime<Utc>
Source§impl Default for DefaultCmdCtx
impl Default for DefaultCmdCtx
Source§fn default() -> DefaultCmdCtx
fn default() -> DefaultCmdCtx
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultCmdCtx
impl !RefUnwindSafe for DefaultCmdCtx
impl !Send for DefaultCmdCtx
impl !Sync for DefaultCmdCtx
impl Unpin for DefaultCmdCtx
impl UnsafeUnpin for DefaultCmdCtx
impl !UnwindSafe for DefaultCmdCtx
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