Struct bitcoin_qt::ClientModel
source · pub struct ClientModel { /* private fields */ }
Expand description
| Model for Bitcoin network client. |
Implementations§
source§impl ClientModel
impl ClientModel
pub fn node(&self) -> Rc<RefCell<dyn NodeInterface>>
pub fn num_connections_changed(&mut self, count: i32)
sourcepub fn message(&mut self, title: &String, message: &String, style: u32)
pub fn message(&mut self, title: &String, message: &String, style: u32)
| Fired when a message should be reported | to the user |
sourcepub fn show_progress(&mut self, title: &String, n_progress: i32)
pub fn show_progress(&mut self, title: &String, n_progress: i32)
| Show progress dialog e.g. for verifychain |
source§impl ClientModel
impl ClientModel
pub fn new( node: Rc<RefCell<dyn NodeInterface>>, options_model: *mut OptionsModel, parent: *mut u32 ) -> Self
sourcepub fn get_num_connections(&self, flags: Option<u32>) -> i32
pub fn get_num_connections(&self, flags: Option<u32>) -> i32
| Return number of connections, default | is in- and outbound (total) |
pub fn get_header_tip_height(&self) -> i32
pub fn get_header_tip_time(&self) -> i64
pub fn get_num_blocks(&self) -> i32
pub fn get_best_block_hash(&mut self) -> u256
pub fn update_num_connections(&mut self, num_connections: i32)
pub fn update_network_active(&mut self, network_active: bool)
pub fn update_alert(&mut self)
sourcepub fn get_block_source(&self) -> BlockSource
pub fn get_block_source(&self) -> BlockSource
| Returns enum BlockSource of the current | importing/syncing state |
sourcepub fn get_status_bar_warnings(&self) -> String
pub fn get_status_bar_warnings(&self) -> String
| Return warnings to be displayed in status | bar |
pub fn get_options_model(&mut self) -> *mut OptionsModel
pub fn get_peer_table_model(&mut self) -> *mut PeerTableModel
pub fn peer_table_sort_proxy(&mut self) -> *mut PeerTableSortProxy
pub fn get_ban_table_model(&mut self) -> *mut BanTableModel
pub fn format_full_version(&self) -> String
pub fn format_sub_version(&self) -> String
pub fn is_release_version(&self) -> bool
pub fn format_client_startup_time(&self) -> String
pub fn data_dir(&self) -> String
pub fn blocks_dir(&self) -> String
pub fn update_banlist(&mut self)
pub fn subscribe_to_core_signals(&mut self)
pub fn unsubscribe_from_core_signals(&mut self)
pub fn get_proxy_info(&self, ip_port: &mut String) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClientModel
impl !Send for ClientModel
impl !Sync for ClientModel
impl Unpin for ClientModel
impl !UnwindSafe for ClientModel
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