pub struct Blockchain { /* private fields */ }Implementations§
Source§impl Blockchain
impl Blockchain
pub async fn get_current_block_num(&self, mode: BlockchainMode) -> Result<u32>
pub async fn get_current_block_header( &self, mode: BlockchainMode, ) -> Result<BlockHeader>
pub async fn get_current_block( &self, mode: BlockchainMode, ) -> Result<SignedBlock>
pub fn get_block_numbers( &self, options: BlockchainStreamOptions, ) -> impl Stream<Item = Result<u32>> + '_
pub fn get_blocks( &self, options: BlockchainStreamOptions, ) -> impl Stream<Item = Result<SignedBlock>> + '_
pub fn get_operations( &self, options: BlockchainStreamOptions, ) -> impl Stream<Item = Result<AppliedOperation>> + '_
Trait Implementations§
Source§impl Clone for Blockchain
impl Clone for Blockchain
Source§fn clone(&self) -> Blockchain
fn clone(&self) -> Blockchain
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Blockchain
impl !RefUnwindSafe for Blockchain
impl Send for Blockchain
impl Sync for Blockchain
impl Unpin for Blockchain
impl UnsafeUnpin for Blockchain
impl !UnwindSafe for Blockchain
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