pub struct AddressStateProviderProxy { /* private fields */ }
Implementations§
Source§impl AddressStateProviderProxy
impl AddressStateProviderProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.interfaces.admin/AddressStateProvider.
Sourcepub fn take_event_stream(&self) -> AddressStateProviderEventStream
pub fn take_event_stream(&self) -> AddressStateProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn update_address_properties(
&self,
address_properties: &AddressProperties,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn update_address_properties( &self, address_properties: &AddressProperties, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<AddressAssignmentState, DefaultFuchsiaResourceDialect>
pub fn watch_address_assignment_state( &self, ) -> QueryResponseFut<AddressAssignmentState, DefaultFuchsiaResourceDialect>
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 AddressStateProviderProxyInterface for AddressStateProviderProxy
impl AddressStateProviderProxyInterface for AddressStateProviderProxy
type UpdateAddressPropertiesResponseFut = QueryResponseFut<()>
type WatchAddressAssignmentStateResponseFut = QueryResponseFut<AddressAssignmentState>
fn update_address_properties( &self, address_properties: &AddressProperties, ) -> Self::UpdateAddressPropertiesResponseFut
fn watch_address_assignment_state( &self, ) -> Self::WatchAddressAssignmentStateResponseFut
fn detach(&self) -> Result<(), Error>
fn remove(&self) -> Result<(), Error>
Source§impl Clone for AddressStateProviderProxy
impl Clone for AddressStateProviderProxy
Source§fn clone(&self) -> AddressStateProviderProxy
fn clone(&self) -> AddressStateProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AddressStateProviderProxy
impl Debug for AddressStateProviderProxy
Source§impl Proxy for AddressStateProviderProxy
impl Proxy for AddressStateProviderProxy
Source§type Protocol = AddressStateProviderMarker
type Protocol = AddressStateProviderMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for AddressStateProviderProxy
impl !RefUnwindSafe for AddressStateProviderProxy
impl Send for AddressStateProviderProxy
impl Sync for AddressStateProviderProxy
impl Unpin for AddressStateProviderProxy
impl !UnwindSafe for AddressStateProviderProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)