[−][src]Struct interledger_api::NodeApi
Methods
impl<S, I, A> NodeApi<S, I> where
S: NodeStore<Account = A> + HttpStore<Account = A> + BalanceStore<Account = A> + SettlementStore<Account = A> + RouterStore + ExchangeRateStore,
I: IncomingService<A> + Clone + Send + Sync + 'static,
A: AccountTrait + HttpAccount + IldcpAccount + SettlementAccount + Serialize + Send + Sync + 'static, [src]
S: NodeStore<Account = A> + HttpStore<Account = A> + BalanceStore<Account = A> + SettlementStore<Account = A> + RouterStore + ExchangeRateStore,
I: IncomingService<A> + Clone + Send + Sync + 'static,
A: AccountTrait + HttpAccount + IldcpAccount + SettlementAccount + Serialize + Send + Sync + 'static,
pub fn new(
server_secret: Bytes,
admin_api_token: String,
store: S,
incoming_handler: I
) -> Self[src]
server_secret: Bytes,
admin_api_token: String,
store: S,
incoming_handler: I
) -> Self
pub fn default_spsp_account(&mut self, username: Username) -> &mut Self[src]
pub fn serve<T>(&self, incoming: T) -> impl Future<Item = (), Error = ()> where
T: ConnectionStream,
T::Item: Send + 'static, [src]
T: ConnectionStream,
T::Item: Send + 'static,
Auto Trait Implementations
impl<S, I> Unpin for NodeApi<S, I> where
I: Unpin,
S: Unpin,
I: Unpin,
S: Unpin,
impl<S, I> Sync for NodeApi<S, I> where
I: Sync,
S: Sync,
I: Sync,
S: Sync,
impl<S, I> Send for NodeApi<S, I> where
I: Send,
S: Send,
I: Send,
S: Send,
impl<S, I> UnwindSafe for NodeApi<S, I> where
I: UnwindSafe,
S: UnwindSafe,
I: UnwindSafe,
S: UnwindSafe,
impl<S, I> RefUnwindSafe for NodeApi<S, I> where
I: RefUnwindSafe,
S: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,