pub enum Signer {
KeypairWrapper(Keypair),
PresignerWrapper(Presigner),
NullSignerWrapper(NullSigner),
}
Variants§
Trait Implementations§
Source§impl<'source> FromPyObject<'source> for Signer
impl<'source> FromPyObject<'source> for Signer
Source§impl SignerTraitWrapper for Signer
impl SignerTraitWrapper for Signer
fn pubkey(&self) -> Pubkey
fn try_pubkey(&self) -> Result<Pubkey, SignerError>
fn sign_message(&self, message: &[u8]) -> Signature
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
fn is_interactive(&self) -> bool
Source§impl ToSignerOriginal for Signer
impl ToSignerOriginal for Signer
fn to_inner(&self) -> Box<dyn SignerTrait>
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more