pub struct RouteSetV4SynchronousProxy { /* private fields */ }
Implementations§
Source§impl RouteSetV4SynchronousProxy
impl RouteSetV4SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RouteSetV4Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RouteSetV4Event, 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<RouteSetV4AuthenticateForInterfaceResult, Error>
pub fn authenticate_for_interface( &self, credential: ProofOfInterfaceAuthorization, ___deadline: MonotonicInstant, ) -> Result<RouteSetV4AuthenticateForInterfaceResult, 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: &RouteV4,
___deadline: MonotonicInstant,
) -> Result<RouteSetV4AddRouteResult, Error>
pub fn add_route( &self, route: &RouteV4, ___deadline: MonotonicInstant, ) -> Result<RouteSetV4AddRouteResult, 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: &RouteV4,
___deadline: MonotonicInstant,
) -> Result<RouteSetV4RemoveRouteResult, Error>
pub fn remove_route( &self, route: &RouteV4, ___deadline: MonotonicInstant, ) -> Result<RouteSetV4RemoveRouteResult, 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 RouteSetV4SynchronousProxy
impl Debug for RouteSetV4SynchronousProxy
Source§impl SynchronousProxy for RouteSetV4SynchronousProxy
impl SynchronousProxy for RouteSetV4SynchronousProxy
Source§type Proxy = RouteSetV4Proxy
type Proxy = RouteSetV4Proxy
The async proxy for the same protocol.
Source§type Protocol = RouteSetV4Marker
type Protocol = RouteSetV4Marker
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 RouteSetV4SynchronousProxy
impl RefUnwindSafe for RouteSetV4SynchronousProxy
impl Send for RouteSetV4SynchronousProxy
impl Sync for RouteSetV4SynchronousProxy
impl Unpin for RouteSetV4SynchronousProxy
impl UnwindSafe for RouteSetV4SynchronousProxy
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