pub struct PushSourcePuppetProxy { /* private fields */ }
Implementations§
Source§impl PushSourcePuppetProxy
impl PushSourcePuppetProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for test.time.realm/PushSourcePuppet.
Sourcepub fn take_event_stream(&self) -> PushSourcePuppetEventStream
pub fn take_event_stream(&self) -> PushSourcePuppetEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn set_sample(
&self,
sample: &TimeSample,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn set_sample( &self, sample: &TimeSample, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Sets the next sample to be reported by the push source.
Sourcepub fn set_status(
&self,
status: Status,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn set_status( &self, status: Status, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Sets the next status to be reported by the push source.
Sourcepub fn crash(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn crash(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Deliberately crash the time source.
Sourcepub fn get_lifetime_served_connections(
&self,
) -> QueryResponseFut<u32, DefaultFuchsiaResourceDialect>
pub fn get_lifetime_served_connections( &self, ) -> QueryResponseFut<u32, DefaultFuchsiaResourceDialect>
Returns the number of cumulative connections served during the lifetime of the PushSourcePuppet. This allows asserting behavior, such as when Timekeeper has restarted a connection. Timekeeper’s lifetime is independent of that of PushSourcePuppet.
Trait Implementations§
Source§impl Clone for PushSourcePuppetProxy
impl Clone for PushSourcePuppetProxy
Source§fn clone(&self) -> PushSourcePuppetProxy
fn clone(&self) -> PushSourcePuppetProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PushSourcePuppetProxy
impl Debug for PushSourcePuppetProxy
Source§impl Proxy for PushSourcePuppetProxy
impl Proxy for PushSourcePuppetProxy
Source§type Protocol = PushSourcePuppetMarker
type Protocol = PushSourcePuppetMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Source§impl PushSourcePuppetProxyInterface for PushSourcePuppetProxy
impl PushSourcePuppetProxyInterface for PushSourcePuppetProxy
type SetSampleResponseFut = QueryResponseFut<()>
type SetStatusResponseFut = QueryResponseFut<()>
type CrashResponseFut = QueryResponseFut<()>
type GetLifetimeServedConnectionsResponseFut = QueryResponseFut<u32>
fn set_sample(&self, sample: &TimeSample) -> Self::SetSampleResponseFut
fn set_status(&self, status: Status) -> Self::SetStatusResponseFut
fn crash(&self) -> Self::CrashResponseFut
fn get_lifetime_served_connections( &self, ) -> Self::GetLifetimeServedConnectionsResponseFut
Auto Trait Implementations§
impl Freeze for PushSourcePuppetProxy
impl !RefUnwindSafe for PushSourcePuppetProxy
impl Send for PushSourcePuppetProxy
impl Sync for PushSourcePuppetProxy
impl Unpin for PushSourcePuppetProxy
impl !UnwindSafe for PushSourcePuppetProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
Source§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.