template <>
class WireSyncClientImpl
Defined at line 784 of file fidling/gen/src/power/system-activity-governor/fake/fidl/test.sagcontrol/cpp/fidl/test.sagcontrol/cpp/wire_messaging.h
Methods to make a sync FIDL call directly on an unowned handle or a
const reference to a |::fidl::ClientEnd
<
::test_sagcontrol::State>|,
avoiding setting up a client.
Public Methods
::fidl::WireResult< ::test_sagcontrol::State::Set> Set (::test_sagcontrol::wire::SystemActivityGovernorState SystemActivityGovernorState)
Sets the power elements to specific states supported by SAG.
The initial state of SAG is (2, 0). Boot complete logic is ignored in this protocol.
In SystemActivityGovernorState, omitting specifying a power element's state will preserve
its existing state.
Allocates 80 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::test_sagcontrol::State::Get> Get ()
Return immediately with the current state of SAG.
Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.
::fidl::WireResult< ::test_sagcontrol::State::SetBootComplete> SetBootComplete ()
Inform the Fake SAG to pass through the call and also change state.
Allocates 32 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::test_sagcontrol::State::Watch> Watch ()
On a given connection, the first call will return immediately with SAG's
current state. Subsequent `Watch` requests will only
return if and only if a `test.sagcontrol.State.Set` call sends a request and SAG's
state has changed to the requested supported state.
For example, if the current state of SAG is (1, 0), the first
`Watch` will return (1, 0). If a `test.sagcontrol.State.Set`
call sends a request to change state to (2, 1), the next `Watch`
will return when the SAG's state has fully transitioned to (2, 1),
any intermediate transient state (in this example, (2, 0),
will not be returned.
Clients should use this to synchronize SAG states.
Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.