pub struct RoutesV4SynchronousProxy { /* private fields */ }
Implementations§
Source§impl RoutesV4SynchronousProxy
impl RoutesV4SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RoutesV4Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RoutesV4Event, 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 global_route_set(
&self,
route_set: ServerEnd<RouteSetV4Marker>,
) -> Result<(), Error>
pub fn global_route_set( &self, route_set: ServerEnd<RouteSetV4Marker>, ) -> Result<(), Error>
Returns a RouteSetV4
containing all IPv4 routes from the global
routing table. Clients have unilateral access to add or remove routes
from the set. This includes the ability to remove routes installed by
the system, or routes installed by other clients of the RouteSetV4
protocol.
Note that the established connection to the RouteSetV4
protocol will
have a few notable differences from a RouteSetV4
obtained by
[fuchsia.net.routes.admin/RouteTableV4.NewRouteSet
]:
- When removing a route from this route set, the route will be completely removed from the system, including removal from all other route sets to which it belongs.
- The protocol does not encode the lifetime of the route set or its routes. Closing the client end will not cause the routes within this route set to be removed from the system. Thus, routes added via this route set will effectively be abandoned/unowned after this client-end closes.
- request
route set
grants access to theRouteSetV4
protocol.
Trait Implementations§
Source§impl Debug for RoutesV4SynchronousProxy
impl Debug for RoutesV4SynchronousProxy
Source§impl SynchronousProxy for RoutesV4SynchronousProxy
impl SynchronousProxy for RoutesV4SynchronousProxy
Source§type Proxy = RoutesV4Proxy
type Proxy = RoutesV4Proxy
The async proxy for the same protocol.
Source§type Protocol = RoutesV4Marker
type Protocol = RoutesV4Marker
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 RoutesV4SynchronousProxy
impl RefUnwindSafe for RoutesV4SynchronousProxy
impl Send for RoutesV4SynchronousProxy
impl Sync for RoutesV4SynchronousProxy
impl Unpin for RoutesV4SynchronousProxy
impl UnwindSafe for RoutesV4SynchronousProxy
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