pub struct AddressStateProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl AddressStateProviderSynchronousProxy
impl AddressStateProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<AddressStateProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<AddressStateProviderEvent, 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 update_address_properties(
&self,
address_properties: &AddressProperties,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn update_address_properties( &self, address_properties: &AddressProperties, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Push an update when the address properties change.
The client pushes updates on address properties changes, such as the address becoming deprecated, or the preferred and valid lifetimes being updated as a result of extending the address’ lifetime. The server is expected to cache address properties.
If address_properties
contains invalid property values, the address is
removed and [AddressRemovalReason.INVALID_PROPERTIES
] is issued.
- request
address_properties
the updated properties of the address.
Sourcepub fn watch_address_assignment_state(
&self,
___deadline: MonotonicInstant,
) -> Result<AddressAssignmentState, Error>
pub fn watch_address_assignment_state( &self, ___deadline: MonotonicInstant, ) -> Result<AddressAssignmentState, Error>
Hanging get for address assignment state.
The server does not keep a queue of assignment states, it returns the latest state if it differs from the last one observed.
The first call will always immediately return the current assignment state. Subsequent calls will block until the returned value differs from the last observed value.
It is invalid to call this method while a previous call is pending. Doing so will cause the server end of the protocol to be closed.
- response
assignment_state
the assignment state of the address.
Trait Implementations§
Source§impl SynchronousProxy for AddressStateProviderSynchronousProxy
impl SynchronousProxy for AddressStateProviderSynchronousProxy
Source§type Proxy = AddressStateProviderProxy
type Proxy = AddressStateProviderProxy
Source§type Protocol = AddressStateProviderMarker
type Protocol = AddressStateProviderMarker
Proxy
controls.