pub enum TransactionableOrSigned<Signed> {
Transactionable(Box<dyn Transactionable + 'static>),
Signed((Signed, Box<dyn Transactionable + 'static>)),
}Variants§
Transactionable(Box<dyn Transactionable + 'static>)
A transaction that is not signed.
Signed((Signed, Box<dyn Transactionable + 'static>))
A transaction that is signed and ready to be sent to the network.
Implementations§
Source§impl<S> TransactionableOrSigned<S>
impl<S> TransactionableOrSigned<S>
pub fn transactionable(self) -> Box<dyn Transactionable>
Auto Trait Implementations§
impl<Signed> Freeze for TransactionableOrSigned<Signed>where
Signed: Freeze,
impl<Signed> !RefUnwindSafe for TransactionableOrSigned<Signed>
impl<Signed> Send for TransactionableOrSigned<Signed>where
Signed: Send,
impl<Signed> Sync for TransactionableOrSigned<Signed>where
Signed: Sync,
impl<Signed> Unpin for TransactionableOrSigned<Signed>where
Signed: Unpin,
impl<Signed> !UnwindSafe for TransactionableOrSigned<Signed>
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