Skip to main content

Source

Trait Source 

Source
pub trait Source: Sync {
    // Required methods
    fn status(&self) -> Status;
    fn peers(&self) -> Arc<Vec<u8>> ⓘ;
    fn block(&self, height: u64) -> Result<Option<Vec<u8>>, String>;
    fn proof(&self, epoch: u32) -> Result<Option<Vec<u8>>, String>;
}
Expand description

答えるのに読むもの

Required Methods§

Source

fn status(&self) -> Status

Source

fn peers(&self) -> Arc<Vec<u8>> ⓘ

Node_Discovery_Pull_Peers の答え(つないでいるピアの NetworkNode の並び)

Source

fn block(&self, height: u64) -> Result<Option<Vec<u8>>, String>

height のブロック。刈り込んで消したか、まだなければ None

Source

fn proof(&self, epoch: u32) -> Result<Option<Vec<u8>>, String>

エポック epoch の証明。刈り込んで消したか、まだなければ None

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§