pub struct SolanaSignerHandle(/* private fields */);Expand description
A handle to the current Solana signer, providing type-safe access.
This handle guarantees that the underlying signer supports Solana operations.
It implements Deref to dyn SolanaSigner, allowing direct access to all
Solana-specific methods.
§Thread Safety
The handle is Send + Sync and can be passed between threads safely.
The underlying signer is reference-counted and immutable.
§Examples
ⓘ
use riglr_core::signer::SignerContext;
async fn solana_transfer() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Get a type-safe handle to the Solana signer
let signer = SignerContext::current_as_solana().await?;
// Access Solana-specific methods directly
let pubkey = signer.pubkey();
let signature = signer.sign_message(b"Hello").await?;
Ok(())
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for SolanaSignerHandle
impl !RefUnwindSafe for SolanaSignerHandle
impl Send for SolanaSignerHandle
impl Sync for SolanaSignerHandle
impl Unpin for SolanaSignerHandle
impl !UnwindSafe for SolanaSignerHandle
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