[][src]Struct grin_wallet_controller::controller::OwnerAPIHandlerV3

pub struct OwnerAPIHandlerV3<L, C, K> where
    L: WalletLCProvider<'static, C, K> + 'static,
    C: NodeClient + 'static,
    K: Keychain + 'static, 
{ pub wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>, pub shared_key: Arc<Mutex<Option<SecretKey>>>, pub keychain_mask: Arc<Mutex<Option<SecretKey>>>, pub running_foreign: bool, // some fields omitted }

V3 API Handler/Wrapper for owner functions, which include a secure mode + lifecycle functions

Fields

wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>

Wallet instance

shared_key: Arc<Mutex<Option<SecretKey>>>

ECDH shared key

keychain_mask: Arc<Mutex<Option<SecretKey>>>

Keychain mask (to change if also running the foreign API)

running_foreign: bool

Whether we're running the foreign API on the same port, and therefore have to store the mask in-process

Methods

impl<L, C, K> OwnerAPIHandlerV3<L, C, K> where
    L: WalletLCProvider<'static, C, K>,
    C: NodeClient + 'static,
    K: Keychain + 'static, 
[src]

pub fn new(
    wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>,
    keychain_mask: Arc<Mutex<Option<SecretKey>>>,
    tor_config: Option<TorConfig>,
    running_foreign: bool
) -> OwnerAPIHandlerV3<L, C, K>
[src]

Create a new owner API handler for GET methods

Trait Implementations

impl<L, C, K> Handler for OwnerAPIHandlerV3<L, C, K> where
    L: WalletLCProvider<'static, C, K> + 'static,
    C: NodeClient + 'static,
    K: Keychain + 'static, 
[src]

Auto Trait Implementations

impl<L, C, K> !RefUnwindSafe for OwnerAPIHandlerV3<L, C, K>

impl<L, C, K> Send for OwnerAPIHandlerV3<L, C, K>

impl<L, C, K> Sync for OwnerAPIHandlerV3<L, C, K>

impl<L, C, K> Unpin for OwnerAPIHandlerV3<L, C, K>

impl<L, C, K> !UnwindSafe for OwnerAPIHandlerV3<L, C, K>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,