Struct bitcoin_node::NodeImpl

source ·
pub struct NodeImpl { /* private fields */ }

Implementations§

source§

impl NodeImpl

source

pub fn chainman(&mut self) -> &mut ChainstateManager

source

pub fn new(context: &mut dyn NodeContextInterface) -> Self

source

pub fn init_logging(&mut self)

source

pub fn init_parameter_interaction(&mut self)

source

pub fn get_warnings(&mut self) -> BilingualStr

source

pub fn get_log_categories(&mut self) -> u32

source

pub fn base_initialize(&mut self) -> bool

source

pub fn app_init_main(&mut self, tip_info: *mut BlockAndHeaderTipInfo) -> bool

source

pub fn app_shutdown(&mut self)

source

pub fn start_shutdown(&mut self)

source

pub fn shutdown_requested(&mut self) -> bool

source

pub fn map_port(&mut self, use_upnp: bool, use_natpmp: bool)

source

pub fn get_proxy(&mut self, net: Network, proxy_info: &mut ProxyType) -> bool

source

pub fn get_node_count(&mut self, flags: ConnectionDirection) -> usize

source

pub fn get_nodes_stats(&mut self, stats: &mut NodesStats) -> bool

source

pub fn get_banned(&mut self, banmap: &mut BanMap) -> bool

source

pub fn ban(&mut self, net_addr: &NetAddr, ban_time_offset: i64) -> bool

source

pub fn unban(&mut self, ip: &SubNet) -> bool

source

pub fn disconnect_by_address(&mut self, net_addr: &NetAddr) -> bool

source

pub fn disconnect_by_id(&mut self, id: NodeId) -> bool

source

pub fn external_signers(&mut self) -> Vec<ExternalSigner>

source

pub fn get_total_bytes_recv(&mut self) -> i64

source

pub fn get_total_bytes_sent(&mut self) -> i64

source

pub fn get_mempool_size(&mut self) -> usize

source

pub fn get_mempool_dynamic_usage(&mut self) -> usize

source

pub fn get_header_tip(&mut self, height: &mut i32, block_time: &mut i64) -> bool

source

pub fn get_num_blocks(&mut self) -> i32

source

pub fn get_best_block_hash(&mut self) -> u256

source

pub fn get_last_block_time(&mut self) -> i64

source

pub fn get_verification_progress(&mut self) -> f64

source

pub fn is_initial_block_download(&mut self) -> bool

source

pub fn get_reindex(&mut self) -> bool

source

pub fn get_importing(&mut self) -> bool

source

pub fn set_network_active(&mut self, active: bool)

source

pub fn get_network_active(&mut self) -> bool

source

pub fn get_dust_relay_fee(&mut self) -> FeeRate

source

pub fn execute_rpc( &mut self, command: &String, params: &UniValue, uri: &String ) -> UniValue

source

pub fn list_rpc_commands(&mut self) -> Vec<String>

source

pub fn rpc_set_timer_interface_if_unset<'a>( &mut self, iface: &'a mut dyn RPCTimerInterface )

source

pub fn rpc_unset_timer_interface<'a>( &mut self, iface: &'a mut dyn RPCTimerInterface )

source

pub fn get_unspent_output(&mut self, output: &OutPoint, coin: &mut Coin) -> bool

source

pub fn wallet_client(&mut self) -> Rc<RefCell<dyn WalletClient>>

source

pub fn handle_init_message( &mut self, fn_: NodeInitMessageFn ) -> Box<dyn Handler>

source

pub fn handle_message_box(&mut self, fn_: NodeMessageBoxFn) -> Box<dyn Handler>

source

pub fn handle_question(&mut self, fn_: NodeQuestionFn) -> Box<dyn Handler>

source

pub fn handle_show_progress( &mut self, fn_: NodeShowProgressFn ) -> Box<dyn Handler>

source

pub fn handle_notify_num_connections_changed( &mut self, fn_: NodeNotifyNumConnectionsChangedFn ) -> Box<dyn Handler>

source

pub fn handle_notify_network_active_changed( &mut self, fn_: NodeNotifyNetworkActiveChangedFn ) -> Box<dyn Handler>

source

pub fn handle_notify_alert_changed( &mut self, fn_: NodeNotifyAlertChangedFn ) -> Box<dyn Handler>

source

pub fn handle_banned_list_changed( &mut self, fn_: NodeBannedListChangedFn ) -> Box<dyn Handler>

source

pub fn handle_notify_block_tip( &mut self, fn_: NodeNotifyBlockTipFn ) -> Box<dyn Handler>

source

pub fn handle_notify_header_tip( &mut self, fn_: NodeNotifyHeaderTipFn ) -> Box<dyn Handler>

source

pub fn context(&mut self) -> *mut dyn NodeContextInterface

source

pub fn set_context(&mut self, context: *mut dyn NodeContextInterface)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> StaticUpcast<T> for T

§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V