Struct thingvellir::Commit[][src]

pub struct Commit<Data>(_, _);
Expand description

Specifies how the execute_mut should be committed to the upstream.

This allows you to control the durability of your data mutation.

Implementations

Persist the item immediately. The execution future will not resolve until your write has been been acknowledged by the upstream layer.

Persist the data, using the default persistence policy for the service.

Ensure that the data is persisted within a given duration.

The mutation resulted in a no-op. Do not try to persist the data in any way.

Safety

This function is unsafe, as it’s up to you to make sure to only call this if and only if the data truly did not change. Since you’re getting a &mut to the data, this contract cannot be statically enforced. So, it’s up to you to use correctly.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.