pub struct RouteSetV6SynchronousProxy { /* private fields */ }
Implementations§
Source§impl RouteSetV6SynchronousProxy
impl RouteSetV6SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RouteSetV6Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RouteSetV6Event, 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 authenticate_for_interface(
&self,
credential: ProofOfInterfaceAuthorization,
___deadline: MonotonicInstant,
) -> Result<RouteSetV6AuthenticateForInterfaceResult, Error>
pub fn authenticate_for_interface( &self, credential: ProofOfInterfaceAuthorization, ___deadline: MonotonicInstant, ) -> Result<RouteSetV6AuthenticateForInterfaceResult, Error>
Authenticate this route set to manage routes on the provided interface. Authentication is valid for the lifetime of the route set.
- request
interface
the authentication credential for an interface.
Sourcepub fn add_route(
&self,
route: &RouteV6,
___deadline: MonotonicInstant,
) -> Result<RouteSetV6AddRouteResult, Error>
pub fn add_route( &self, route: &RouteV6, ___deadline: MonotonicInstant, ) -> Result<RouteSetV6AddRouteResult, Error>
Adds a route to this route set.
- request
route
the route to add.
- response
did_add
true iff the route was added to thisRouteSet
as a result of this call.
Sourcepub fn remove_route(
&self,
route: &RouteV6,
___deadline: MonotonicInstant,
) -> Result<RouteSetV6RemoveRouteResult, Error>
pub fn remove_route( &self, route: &RouteV6, ___deadline: MonotonicInstant, ) -> Result<RouteSetV6RemoveRouteResult, Error>
Removes a route from this route set.
Note that if this route also exists other route sets, it will not be removed from the global routing table.
- request
route
the route to remove.
- response
did_remove
true iff the route was removed from thisRouteSet
as a result of this call.
Trait Implementations§
Source§impl Debug for RouteSetV6SynchronousProxy
impl Debug for RouteSetV6SynchronousProxy
Source§impl SynchronousProxy for RouteSetV6SynchronousProxy
impl SynchronousProxy for RouteSetV6SynchronousProxy
Source§type Proxy = RouteSetV6Proxy
type Proxy = RouteSetV6Proxy
The async proxy for the same protocol.
Source§type Protocol = RouteSetV6Marker
type Protocol = RouteSetV6Marker
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 RouteSetV6SynchronousProxy
impl RefUnwindSafe for RouteSetV6SynchronousProxy
impl Send for RouteSetV6SynchronousProxy
impl Sync for RouteSetV6SynchronousProxy
impl Unpin for RouteSetV6SynchronousProxy
impl UnwindSafe for RouteSetV6SynchronousProxy
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