pub struct PushSourcePuppetSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PushSourcePuppetSynchronousProxy
impl PushSourcePuppetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PushSourcePuppetEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PushSourcePuppetEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn set_sample(
&self,
sample: &TimeSample,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn set_sample( &self, sample: &TimeSample, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Sets the next sample to be reported by the push source.
Sourcepub fn set_status(
&self,
status: Status,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn set_status( &self, status: Status, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Sets the next status to be reported by the push source.
Sourcepub fn crash(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
pub fn crash(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Deliberately crash the time source.
Sourcepub fn get_lifetime_served_connections(
&self,
___deadline: MonotonicInstant,
) -> Result<u32, Error>
pub fn get_lifetime_served_connections( &self, ___deadline: MonotonicInstant, ) -> Result<u32, Error>
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 SynchronousProxy for PushSourcePuppetSynchronousProxy
impl SynchronousProxy for PushSourcePuppetSynchronousProxy
Source§type Proxy = PushSourcePuppetProxy
type Proxy = PushSourcePuppetProxy
The async proxy for the same protocol.
Source§type Protocol = PushSourcePuppetMarker
type Protocol = PushSourcePuppetMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PushSourcePuppetSynchronousProxy
impl RefUnwindSafe for PushSourcePuppetSynchronousProxy
impl Send for PushSourcePuppetSynchronousProxy
impl Sync for PushSourcePuppetSynchronousProxy
impl Unpin for PushSourcePuppetSynchronousProxy
impl UnwindSafe for PushSourcePuppetSynchronousProxy
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