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::request] 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 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 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 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 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 SetUpstreamParams

Source§

const METHOD: ControlMethod = ControlMethod::ConfigSetUpstream

Source§

type Output = SetUpstreamResult

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