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§
fn status(&self) -> Status
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".