pub struct StateV4SynchronousProxy { /* private fields */ }
Implementations§
Source§impl StateV4SynchronousProxy
impl StateV4SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<StateV4Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<StateV4Event, 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 get_watcher_v4(
&self,
watcher: ServerEnd<WatcherV4Marker>,
options: &WatcherOptionsV4,
) -> Result<(), Error>
pub fn get_watcher_v4( &self, watcher: ServerEnd<WatcherV4Marker>, options: &WatcherOptionsV4, ) -> Result<(), Error>
Initialize a watcher for IPv4 routing state.
- request ‘watcher’ grants access to the
WatcherV4
Protocol. - request
watch_options
specifies the behavior of theWatcherV4
.
Sourcepub fn get_rule_watcher_v4(
&self,
watcher: ServerEnd<RuleWatcherV4Marker>,
options: &RuleWatcherOptionsV4,
) -> Result<(), Error>
pub fn get_rule_watcher_v4( &self, watcher: ServerEnd<RuleWatcherV4Marker>, options: &RuleWatcherOptionsV4, ) -> Result<(), Error>
Initialize a watcher for IPv4 rules state.
- request ‘watcher’ grants access to the
RuleWatcherV4
Protocol. - request
watch_options
specifies the behavior of theRuleWatcherV4
.
Trait Implementations§
Source§impl Debug for StateV4SynchronousProxy
impl Debug for StateV4SynchronousProxy
Source§impl SynchronousProxy for StateV4SynchronousProxy
impl SynchronousProxy for StateV4SynchronousProxy
Source§type Proxy = StateV4Proxy
type Proxy = StateV4Proxy
The async proxy for the same protocol.
Source§type Protocol = StateV4Marker
type Protocol = StateV4Marker
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 StateV4SynchronousProxy
impl RefUnwindSafe for StateV4SynchronousProxy
impl Send for StateV4SynchronousProxy
impl Sync for StateV4SynchronousProxy
impl Unpin for StateV4SynchronousProxy
impl UnwindSafe for StateV4SynchronousProxy
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