Enum reaper_medium::ChunkCacheHint
source · [−]pub enum ChunkCacheHint {
NormalMode,
UndoMode,
}
Expand description
A performance/caching hint which determines how REAPER internally gets or sets a chunk.
Has implications on both performance and chunk content.
Variants
NormalMode
This takes longer but is the best choice for most situations.
UndoMode
This can be faster but has some drawbacks.
The following happens when using this mode:
- When getting a chunk, then FX configurations are cached, e.g. if the plug-in hasn’t recently notified REAPER of a parameter change, the last configuration state is returned (which is faster). The downside is if the plug-in doesn’t properly report its state as having changed, one wouldn’t get the latest version.
- When setting a chunk, envelope lane sizes will not be updated from the configuration state.
- The format in which FX GUIDs are encoded is slightly different in this mode (to facilitate more efficient re-use of existing plug-in instances).
- The logic in saving the event data for pooled MIDI items is slightly different (in undo mode only one of the items in the pool will encode, in normal mode the first instance in the chunk will get the data).
Trait Implementations
sourceimpl Clone for ChunkCacheHint
impl Clone for ChunkCacheHint
sourcefn clone(&self) -> ChunkCacheHint
fn clone(&self) -> ChunkCacheHint
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChunkCacheHint
impl Debug for ChunkCacheHint
sourceimpl Hash for ChunkCacheHint
impl Hash for ChunkCacheHint
sourceimpl PartialEq<ChunkCacheHint> for ChunkCacheHint
impl PartialEq<ChunkCacheHint> for ChunkCacheHint
sourcefn eq(&self, other: &ChunkCacheHint) -> bool
fn eq(&self, other: &ChunkCacheHint) -> bool
impl Copy for ChunkCacheHint
impl Eq for ChunkCacheHint
impl StructuralEq for ChunkCacheHint
impl StructuralPartialEq for ChunkCacheHint
Auto Trait Implementations
impl RefUnwindSafe for ChunkCacheHint
impl Send for ChunkCacheHint
impl Sync for ChunkCacheHint
impl Unpin for ChunkCacheHint
impl UnwindSafe for ChunkCacheHint
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
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more