Struct cameleon::genapi::SharedNoCacheGenApiCtxt
source · pub struct SharedNoCacheGenApiCtxt {
pub node_store: Arc<DefaultNodeStore>,
pub value_ctxt: Arc<Mutex<ValueCtxt<DefaultValueStore, CacheSink>>>,
pub reg_desc: Arc<RegisterDescription>,
}
Expand description
A sharable version of NoCacheGenApiCtxt
.
Fields§
§node_store: Arc<DefaultNodeStore>
Node store.
value_ctxt: Arc<Mutex<ValueCtxt<DefaultValueStore, CacheSink>>>
Value context.
reg_desc: Arc<RegisterDescription>
Register description.
Trait Implementations§
source§fn clone(&self) -> SharedNoCacheGenApiCtxt
fn clone(&self) -> SharedNoCacheGenApiCtxt
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§fn from(from: DefaultGenApiCtxt) -> Self
fn from(from: DefaultGenApiCtxt) -> Self
Converts to this type from the input type.
source§fn from(from: NoCacheGenApiCtxt) -> Self
fn from(from: NoCacheGenApiCtxt) -> Self
Converts to this type from the input type.
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 `§type NS = DefaultNodeStore
type NS = DefaultNodeStore
A type that implements
NodeStore
§type VS = DefaultValueStore
type VS = DefaultValueStore
A type that implements
ValueStore
§type CS = CacheSink
type CS = CacheSink
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§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more