pub struct RoutesV6SynchronousProxy { /* private fields */ }
Implementations§
Source§impl RoutesV6SynchronousProxy
impl RoutesV6SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RoutesV6Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RoutesV6Event, 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<RouteSetV6Marker>,
) -> Result<(), Error>
pub fn global_route_set( &self, route_set: ServerEnd<RouteSetV6Marker>, ) -> Result<(), Error>
Returns a RouteSetV6
containing all IPv6 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 RouteSetV6
protocol.
Note that the established connection to the RouteSetV6
protocol will
have a few notable differences from a RouteSetV6
obtained by
[fuchsia.net.routes.admin/RouteTableV6.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 theRouteSetV6
protocol.
Trait Implementations§
Source§impl Debug for RoutesV6SynchronousProxy
impl Debug for RoutesV6SynchronousProxy
Source§impl SynchronousProxy for RoutesV6SynchronousProxy
impl SynchronousProxy for RoutesV6SynchronousProxy
Source§type Proxy = RoutesV6Proxy
type Proxy = RoutesV6Proxy
The async proxy for the same protocol.
Source§type Protocol = RoutesV6Marker
type Protocol = RoutesV6Marker
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 RoutesV6SynchronousProxy
impl RefUnwindSafe for RoutesV6SynchronousProxy
impl Send for RoutesV6SynchronousProxy
impl Sync for RoutesV6SynchronousProxy
impl Unpin for RoutesV6SynchronousProxy
impl UnwindSafe for RoutesV6SynchronousProxy
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