Skip to main content

ControlCall

Trait ControlCall 

Source
pub trait ControlCall: Serialize {
    type Output: DeserializeOwned;

    const METHOD: ControlMethod;
}
Expand description

A typed control call: a params struct that knows its ControlMethod and its result type.

Implemented by every struct in crate::params; this is what makes ControlClient::parse_response return the right typed result for each method at compile time.

Required Associated Constants§

Source

const METHOD: ControlMethod

The wire method this call invokes.

Required Associated Types§

Source

type Output: DeserializeOwned

The typed result this call returns on success.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ControlCall for ApproveParams

Source§

const METHOD: ControlMethod = ControlMethod::PairingApprove

Source§

type Output = PairingApproveResult

Source§

impl ControlCall for CacheClearParams

Source§

const METHOD: ControlMethod = ControlMethod::CacheClear

Source§

type Output = CacheClearResult

Source§

impl ControlCall for CacheGetParams

Source§

const METHOD: ControlMethod = ControlMethod::CacheGet

Source§

type Output = CacheView

Source§

impl ControlCall for CapsuleFetchParams

Source§

const METHOD: ControlMethod = ControlMethod::CapsuleFetch

Source§

type Output = CapsuleFetchResult

Source§

impl ControlCall for ChiaPeersAddParams

Source§

const METHOD: ControlMethod = ControlMethod::ChiaPeersAdd

Source§

type Output = ChiaPeersAddResult

Source§

impl ControlCall for ChiaPeersRemoveParams

Source§

const METHOD: ControlMethod = ControlMethod::ChiaPeersRemove

Source§

type Output = ChiaPeersRemoveResult

Source§

impl ControlCall for CollateralBufferParams

Source§

const METHOD: ControlMethod = ControlMethod::CollateralBuffer

Source§

type Output = CollateralBufferResult

Source§

impl ControlCall for CollateralMarginGetParams

Source§

const METHOD: ControlMethod = ControlMethod::CollateralMarginGet

Source§

type Output = CollateralMarginResult

Source§

impl ControlCall for CollateralMarginSetParams

Source§

const METHOD: ControlMethod = ControlMethod::CollateralMarginSet

Source§

type Output = CollateralMarginResult

Source§

impl ControlCall for CollateralRequirementParams

Source§

const METHOD: ControlMethod = ControlMethod::CollateralRequirement

Source§

type Output = CollateralRequirementResult

Source§

impl ControlCall for ConfigGetParams

Source§

const METHOD: ControlMethod = ControlMethod::ConfigGet

Source§

type Output = ConfigResult

Source§

impl ControlCall for HostedStoreStatusParams

Source§

const METHOD: ControlMethod = ControlMethod::HostedStoresStatus

Source§

type Output = HostedStoreStatusResult

Source§

impl ControlCall for HostedStoresListParams

Source§

const METHOD: ControlMethod = ControlMethod::HostedStoresList

Source§

type Output = HostedStoresListResult

Source§

impl ControlCall for ListSubscriptionsParams

Source§

const METHOD: ControlMethod = ControlMethod::ListSubscriptions

Source§

type Output = ListSubscriptionsResult

Source§

impl ControlCall for MirrorBondStatesParams

Source§

const METHOD: ControlMethod = ControlMethod::MirrorBondStates

Source§

type Output = MirrorBondStatesResult

Source§

impl ControlCall for MirrorReconcileParams

Source§

const METHOD: ControlMethod = ControlMethod::MirrorReconcile

Source§

type Output = MirrorReconcileResult

Source§

impl ControlCall for PairingListParams

Source§

const METHOD: ControlMethod = ControlMethod::PairingList

Source§

type Output = Value

Source§

impl ControlCall for PauseParams

Source§

const METHOD: ControlMethod = ControlMethod::UpdaterPause

Source§

type Output = Value

Source§

impl ControlCall for PeerCountsParams

Source§

const METHOD: ControlMethod = ControlMethod::PeerCounts

Source§

type Output = PeerCountsResult

Source§

impl ControlCall for PeerStatusParams

Source§

const METHOD: ControlMethod = ControlMethod::PeerStatus

Source§

type Output = Value

Source§

impl ControlCall for PeersConnectParams

Source§

const METHOD: ControlMethod = ControlMethod::PeersConnect

Source§

type Output = PeersConnectResult

Source§

impl ControlCall for PeersDisconnectParams

Source§

const METHOD: ControlMethod = ControlMethod::PeersDisconnect

Source§

type Output = PeersDisconnectResult

Source§

impl ControlCall for PinParams

Source§

const METHOD: ControlMethod = ControlMethod::HostedStoresPin

Source§

type Output = PinResult

Source§

impl ControlCall for PollParams

Source§

const METHOD: ControlMethod = ControlMethod::PairingPoll

Source§

type Output = PairingPollResult

Source§

impl ControlCall for ProfileGetBodyParams

Source§

const METHOD: ControlMethod = ControlMethod::ProfileGetBody

Source§

type Output = ProfileGetBodyResult

Source§

impl ControlCall for ProfilePutBodyParams

Source§

const METHOD: ControlMethod = ControlMethod::ProfilePutBody

Source§

type Output = ProfilePutBodyResult

Source§

impl ControlCall for RequestParams

Source§

const METHOD: ControlMethod = ControlMethod::PairingRequest

Source§

type Output = PairingRequestResult

Source§

impl ControlCall for RevokeParams

Source§

const METHOD: ControlMethod = ControlMethod::PairingRevoke

Source§

type Output = PairingRevokeResult

Source§

impl ControlCall for SetCapParams

Source§

const METHOD: ControlMethod = ControlMethod::CacheSetCap

Source§

type Output = SetCapResult

Source§

impl ControlCall for SetChannelParams

Source§

const METHOD: ControlMethod = ControlMethod::UpdaterSetChannel

Source§

type Output = Value

Source§

impl ControlCall for SetLevelParams

Source§

const METHOD: ControlMethod = ControlMethod::LogSetLevel

Source§

type Output = SetLevelResult

Source§

impl ControlCall for SetMirrorAdvertiseUrlsParams

Source§

const METHOD: ControlMethod = ControlMethod::ConfigSetMirrorAdvertiseUrls

Source§

type Output = SetMirrorAdvertiseUrlsResult

Source§

impl ControlCall for SetUpstreamParams

Source§

const METHOD: ControlMethod = ControlMethod::ConfigSetUpstream

Source§

type Output = SetUpstreamResult

Source§

impl ControlCall for SpendsListParams

Source§

const METHOD: ControlMethod = ControlMethod::SpendsList

Source§

type Output = SpendsListResult

Source§

impl ControlCall for StatusParams

Source§

const METHOD: ControlMethod = ControlMethod::Status

Source§

type Output = StatusResult

Source§

impl ControlCall for SubscribeParams

Source§

const METHOD: ControlMethod = ControlMethod::Subscribe

Source§

type Output = SubscribeResult

Source§

impl ControlCall for SyncStatusParams

Source§

const METHOD: ControlMethod = ControlMethod::SyncStatus

Source§

type Output = SyncStatusResult

Source§

impl ControlCall for SyncTriggerParams

Source§

const METHOD: ControlMethod = ControlMethod::SyncTrigger

Source§

type Output = SyncTriggerResult

Source§

impl ControlCall for UnpinParams

Source§

const METHOD: ControlMethod = ControlMethod::HostedStoresUnpin

Source§

type Output = UnpinResult

Source§

impl ControlCall for UnsubscribeParams

Source§

const METHOD: ControlMethod = ControlMethod::Unsubscribe

Source§

type Output = UnsubscribeResult

Source§

impl ControlCall for UpdaterCheckNowParams

Source§

const METHOD: ControlMethod = ControlMethod::UpdaterCheckNow

Source§

type Output = Value

Source§

impl ControlCall for UpdaterResumeParams

Source§

const METHOD: ControlMethod = ControlMethod::UpdaterResume

Source§

type Output = Value

Source§

impl ControlCall for UpdaterStatusParams

Source§

const METHOD: ControlMethod = ControlMethod::UpdaterStatus

Source§

type Output = Value

Source§

impl ControlCall for WalletArrivalsParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletArrivals

Source§

type Output = WalletArrivalsResult

Source§

impl ControlCall for WalletBalanceParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletBalance

Source§

type Output = WalletBalanceResult

Source§

impl ControlCall for WalletBroadcastParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletBroadcast

Source§

type Output = WalletBroadcastResult

Source§

impl ControlCall for WalletCoinByIdParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletCoinById

Source§

type Output = WalletCoinByIdResult

Source§

impl ControlCall for WalletCoinSpendParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletCoinSpend

Source§

type Output = WalletCoinSpendResult

Source§

impl ControlCall for WalletCoinsByParentParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletCoinsByParent

Source§

type Output = WalletCoinsByParentResult

Source§

impl ControlCall for WalletCoinsParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletCoins

Source§

type Output = WalletCoinsResult

Source§

impl ControlCall for WalletOperatorAddressParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletOperatorAddress

Source§

type Output = WalletOperatorAddressResult

Source§

impl ControlCall for WalletPeakParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletPeak

Source§

type Output = WalletPeakResult

Source§

impl ControlCall for WalletReservationsHeldParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletReservationsHeld

Source§

type Output = WalletReservationsHeldResult

Source§

impl ControlCall for WalletReservationsReleaseParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletReservationsRelease

Source§

type Output = WalletReservationsReleaseResult

Source§

impl ControlCall for WalletReservationsReserveParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletReservationsReserve

Source§

type Output = WalletReservationsReserveResult

Source§

impl ControlCall for WalletResetCoinDbParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletResetCoinDb

Source§

type Output = WalletResetCoinDbResult

Source§

impl ControlCall for WalletSyncStatusParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletSyncStatus

Source§

type Output = WalletSyncStatusResult

Source§

impl ControlCall for WalletUnwatchParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletUnwatch

Source§

type Output = WalletUnwatchResult

Source§

impl ControlCall for WalletWatchParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletWatch

Source§

type Output = WalletWatchResult

Source§

impl ControlCall for WalletWatchedParams

Source§

const METHOD: ControlMethod = ControlMethod::WalletWatched

Source§

type Output = WalletWatchedResult