[−][src]Struct grin_wallet_controller::controller::OwnerAPIHandlerV3
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
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]
L: WalletLCProvider<'static, C, K>,
C: NodeClient + 'static,
K: Keychain + 'static,
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]
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>
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]
L: WalletLCProvider<'static, C, K> + 'static,
C: NodeClient + 'static,
K: Keychain + 'static,
fn post(&self, req: Request<Body>) -> ResponseFuture
[src]
fn options(&self, _req: Request<Body>) -> ResponseFuture
[src]
fn get(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn put(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn patch(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn delete(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn head(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn trace(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn connect(
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
_req: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
fn call(
&self,
req: Request<Body>,
_handlers: Box<dyn Iterator<Item = Arc<dyn Handler + 'static + Send + Sync>> + 'static>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
&self,
req: Request<Body>,
_handlers: Box<dyn Iterator<Item = Arc<dyn Handler + 'static + Send + Sync>> + 'static>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + 'static + Send>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,