pub struct OwnerAPIHandlerV2<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>>>,
}Expand description
V2 API Handler/Wrapper for owner functions
Fields
wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>Wallet instance
Implementations
sourceimpl<L, C, K> OwnerAPIHandlerV2<L, C, K> where
L: WalletLCProvider<'static, C, K>,
C: NodeClient + 'static,
K: Keychain + 'static,
impl<L, C, K> OwnerAPIHandlerV2<L, C, K> where
L: WalletLCProvider<'static, C, K>,
C: NodeClient + 'static,
K: Keychain + 'static,
sourcepub fn new(
wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>
) -> OwnerAPIHandlerV2<L, C, K>
pub fn new(
wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>
) -> OwnerAPIHandlerV2<L, C, K>
Create a new owner API handler for GET methods
Trait Implementations
sourceimpl<L, C, K> Handler for OwnerAPIHandlerV2<L, C, K> where
L: WalletLCProvider<'static, C, K> + 'static,
C: NodeClient + 'static,
K: Keychain + 'static,
impl<L, C, K> Handler for OwnerAPIHandlerV2<L, C, K> where
L: WalletLCProvider<'static, C, K> + 'static,
C: NodeClient + 'static,
K: Keychain + 'static,
fn post(&self, req: Request<Body>) -> ResponseFuture
fn options(&self, _req: Request<Body>) -> ResponseFuture
fn get(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn put(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn patch(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn delete(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn head(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn trace(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn connect(
&self,
_req: Request<Body>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
fn call(
&self,
req: Request<Body>,
_handlers: Box<dyn Iterator<Item = Arc<dyn Handler + Send + Sync + 'static>> + 'static, Global>
) -> Box<dyn Future<Item = Response<Body>, Error = Error> + Send + 'static, Global>
Auto Trait Implementations
impl<L, C, K> !RefUnwindSafe for OwnerAPIHandlerV2<L, C, K>
impl<L, C, K> Send for OwnerAPIHandlerV2<L, C, K>
impl<L, C, K> Sync for OwnerAPIHandlerV2<L, C, K>
impl<L, C, K> Unpin for OwnerAPIHandlerV2<L, C, K>
impl<L, C, K> !UnwindSafe for OwnerAPIHandlerV2<L, C, K>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more