pub struct Genesis {
genesis_command: GenesisCommand,
}
Fields§
§genesis_command: GenesisCommand
Implementations§
source§impl Genesis
impl Genesis
pub fn new(genesis_command: GenesisCommand) -> Self
pub fn decode<P: AsRef<Path>>(self, input: P, output: &ChildPath)
pub fn encode<P: AsRef<Path>>(self, input: P, output: &ChildPath)
pub fn encode_expect_fail<P: AsRef<Path>>(self, input: P, expected_msg: &str)
pub fn hash<P: AsRef<Path>>(self, input: P) -> Hash
pub fn hash_expect_fail<P: AsRef<Path>>(self, input: P, expected_msg: &str)
pub fn init(self) -> String
Auto Trait Implementations§
impl !RefUnwindSafe for Genesis
impl Send for Genesis
impl Sync for Genesis
impl Unpin for Genesis
impl !UnwindSafe for Genesis
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request