pub enum RoutesV6Request {
GlobalRouteSet {
route_set: ServerEnd<RouteSetV6Marker>,
control_handle: RoutesV6ControlHandle,
},
}
Expand description
Provides access to IPv6 routes.
This protocol provides the ability to bypass regular ownership-controls which allow only the route set owner to remove routes it added.
Circumventing the strong-ownership semantics through use of this protocol is highly discouraged and applications considering use of this protocol are encouraged to exhaust other options first by working with the Netstack team to find an alternative solution.
Variants§
GlobalRouteSet
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.
Implementations§
Source§impl RoutesV6Request
impl RoutesV6Request
pub fn into_global_route_set( self, ) -> Option<(ServerEnd<RouteSetV6Marker>, RoutesV6ControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL