Struct bitcoin_indexed_chain::NodeContext
source · pub struct NodeContext { /* private fields */ }
Expand description
| NodeContext struct containing references to | chain state and connection state. | | This is used by init, rpc, and test code to | pass object references around without needing | to declare the same variables and parameters | repeatedly, or to use globals. | | More variables could be added to this struct | (particularly references to validation | objects) to eliminate use of globals and make | code more modular and testable. The struct | isn’t intended to have any member functions. | | It should just be a collection of references | that can be used without pulling in unwanted | dependencies or functionality.
Trait Implementations§
impl NodeContextInterface for NodeContext
Auto Trait Implementations§
impl !RefUnwindSafe for NodeContext
impl !Send for NodeContext
impl !Sync for NodeContext
impl Unpin for NodeContext
impl !UnwindSafe for NodeContext
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more