pub struct Deriver<'a> { /* private fields */ }Expand description
Ethereum address deriver.
Implementations§
Source§impl<'a> Deriver<'a>
impl<'a> Deriver<'a>
Sourcepub fn derive_with(
&self,
style: DerivationStyle,
index: u32,
) -> Result<DerivedAccount, DeriveError>
pub fn derive_with( &self, style: DerivationStyle, index: u32, ) -> Result<DerivedAccount, DeriveError>
Sourcepub fn derive_many_with(
&self,
style: DerivationStyle,
start: u32,
count: u32,
) -> Result<Vec<DerivedAccount>, DeriveError>
pub fn derive_many_with( &self, style: DerivationStyle, start: u32, count: u32, ) -> Result<Vec<DerivedAccount>, DeriveError>
Derive count accounts starting at start with a specific style.
§Errors
Returns an error if any individual derivation fails or start + count overflows.
Sourcepub fn derive_at(&self, path: &str) -> Result<DerivedAccount, DeriveError>
pub fn derive_at(&self, path: &str) -> Result<DerivedAccount, DeriveError>
Trait Implementations§
Source§impl Derive for Deriver<'_>
impl Derive for Deriver<'_>
Source§type Account = DerivedAccount
type Account = DerivedAccount
The (possibly newtype) account returned by this deriver. Read more
Source§type Error = DeriveError
type Error = DeriveError
The error type returned by derivation operations.
Source§fn derive(&self, index: u32) -> Result<DerivedAccount, DeriveError>
fn derive(&self, index: u32) -> Result<DerivedAccount, DeriveError>
Derive an account at the given index using the chain’s default path. Read more
Source§fn derive_path(&self, path: &str) -> Result<DerivedAccount, DeriveError>
fn derive_path(&self, path: &str) -> Result<DerivedAccount, DeriveError>
Derive an account at a custom path string. Read more
Auto Trait Implementations§
impl<'a> Freeze for Deriver<'a>
impl<'a> RefUnwindSafe for Deriver<'a>
impl<'a> Send for Deriver<'a>
impl<'a> Sync for Deriver<'a>
impl<'a> Unpin for Deriver<'a>
impl<'a> UnsafeUnpin for Deriver<'a>
impl<'a> UnwindSafe for Deriver<'a>
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