Struct cameleon::genapi::DefaultGenApiCtxt
source · pub struct DefaultGenApiCtxt {
pub node_store: DefaultNodeStore,
pub value_ctxt: ValueCtxt<DefaultValueStore, DefaultCacheStore>,
pub reg_desc: RegisterDescription,
}
Expand description
Default GenApi
context.
This context caches values of GenApi
nodes if possible to reduce transaction.
If you need no cache context, use NoCacheGenApiCtxt
.
Fields§
§node_store: DefaultNodeStore
Node store.
value_ctxt: ValueCtxt<DefaultValueStore, DefaultCacheStore>
Value context.
reg_desc: RegisterDescription
Register description.
Trait Implementations§
source§impl Debug for DefaultGenApiCtxt
impl Debug for DefaultGenApiCtxt
source§impl From<DefaultGenApiCtxt> for NoCacheGenApiCtxt
impl From<DefaultGenApiCtxt> for NoCacheGenApiCtxt
source§fn from(from: DefaultGenApiCtxt) -> Self
fn from(from: DefaultGenApiCtxt) -> Self
Converts to this type from the input type.
source§fn from(ctxt: DefaultGenApiCtxt) -> Self
fn from(ctxt: DefaultGenApiCtxt) -> Self
Converts to this type from the input type.
source§fn from(from: DefaultGenApiCtxt) -> Self
fn from(from: DefaultGenApiCtxt) -> Self
Converts to this type from the input type.
source§impl FromXml for DefaultGenApiCtxt
impl FromXml for DefaultGenApiCtxt
source§fn from_xml(xml: &impl AsRef<str>) -> ControlResult<Self>where
Self: Sized + GenApiCtxt,
fn from_xml(xml: &impl AsRef<str>) -> ControlResult<Self>where Self: Sized + GenApiCtxt,
Parse GenApi
context and build `
source§impl GenApiCtxt for DefaultGenApiCtxt
impl GenApiCtxt for DefaultGenApiCtxt
§type NS = DefaultNodeStore
type NS = DefaultNodeStore
A type that implements
NodeStore
§type VS = DefaultValueStore
type VS = DefaultValueStore
A type that implements
ValueStore
§type CS = DefaultCacheStore
type CS = DefaultCacheStore
A type that implements
CacheStore
source§fn enter<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce(&Self::NS, &mut ValueCtxt<Self::VS, Self::CS>) -> R,
fn enter<F, R>(&mut self, f: F) -> Rwhere F: FnOnce(&Self::NS, &mut ValueCtxt<Self::VS, Self::CS>) -> R,
Provide access to the context.
source§fn node_store(&self) -> &Self::NS
fn node_store(&self) -> &Self::NS
Returns
NodeStore
in the context.source§fn clear_cache(&mut self)
fn clear_cache(&mut self)
Clear all cache of the context.
Auto Trait Implementations§
impl RefUnwindSafe for DefaultGenApiCtxt
impl Send for DefaultGenApiCtxt
impl Sync for DefaultGenApiCtxt
impl Unpin for DefaultGenApiCtxt
impl UnwindSafe for DefaultGenApiCtxt
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