pub struct Dummy { /* private fields */ }
Expand description
Dummy adapter implementation intended for testing.
Implementations
Trait Implementations
sourceimpl Locked for Dummy
impl Locked for Dummy
sourcefn whoami(&self) -> ValidatorId
fn whoami(&self) -> ValidatorId
Get Adapter whoami
sourcefn verify(
&self,
signer: ValidatorId,
_state_root: &str,
signature: &str
) -> Result<bool, Error>
fn verify(
&self,
signer: ValidatorId,
_state_root: &str,
signature: &str
) -> Result<bool, Error>
Verify, based on the signature & state_root, that the signer is the same
Splits the signature by " "
(whitespace) and takes
the last part of it which contains the signer Address
.
sourcefn session_from_token<'life0, 'life1, 'async_trait>(
&'life0 self,
header_token: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Session, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn session_from_token<'life0, 'life1, 'async_trait>(
&'life0 self,
header_token: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Session, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
type Error = Error
fn get_deposit<'life0, 'life1, 'async_trait>(
&'life0 self,
channel_context: &'life1 ChainOf<Channel>,
depositor_address: Address
) -> Pin<Box<dyn Future<Output = Result<Deposit, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl Unlockable for Dummy
impl Unlockable for Dummy
Auto Trait Implementations
impl !RefUnwindSafe for Dummy
impl Send for Dummy
impl Sync for Dummy
impl Unpin for Dummy
impl !UnwindSafe for Dummy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more