pub struct FuchsiaNetworksProxy { /* private fields */ }
Implementations§
Source§impl FuchsiaNetworksProxy
impl FuchsiaNetworksProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.netpol.socketproxy/FuchsiaNetworks.
Sourcepub fn take_event_stream(&self) -> FuchsiaNetworksEventStream
pub fn take_event_stream(&self) -> FuchsiaNetworksEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn set_default(
&self,
network_id: &OptionalUint32,
) -> QueryResponseFut<NetworkRegistrySetDefaultResult, DefaultFuchsiaResourceDialect>
pub fn set_default( &self, network_id: &OptionalUint32, ) -> QueryResponseFut<NetworkRegistrySetDefaultResult, DefaultFuchsiaResourceDialect>
Sets the default network.
The network must have previously been registered by a call to Add
.
Sourcepub fn add(
&self,
network: &Network,
) -> QueryResponseFut<NetworkRegistryAddResult, DefaultFuchsiaResourceDialect>
pub fn add( &self, network: &Network, ) -> QueryResponseFut<NetworkRegistryAddResult, DefaultFuchsiaResourceDialect>
Add a new network.
This call will not return until the DNS servers have been successfully updated in netcfg.
Sourcepub fn update(
&self,
network: &Network,
) -> QueryResponseFut<NetworkRegistryUpdateResult, DefaultFuchsiaResourceDialect>
pub fn update( &self, network: &Network, ) -> QueryResponseFut<NetworkRegistryUpdateResult, DefaultFuchsiaResourceDialect>
Update a previously Added network. This call will not return until the DNS servers have been successfully updated in netcfg.
Sourcepub fn remove(
&self,
network_id: u32,
) -> QueryResponseFut<NetworkRegistryRemoveResult, DefaultFuchsiaResourceDialect>
pub fn remove( &self, network_id: u32, ) -> QueryResponseFut<NetworkRegistryRemoveResult, DefaultFuchsiaResourceDialect>
Remove a previously Added network. This call will not return until the DNS servers have been successfully updated in netcfg.
Sourcepub fn check_presence(
&self,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn check_presence( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
No-op method that allows checking for presence.
TODO(https://fxbug.dev/296283299): It’s not currently possible for a client with an optionally-provided protocol to check whether there’s someone on the other end without making a FIDL call . This method provides a workaround by giving a client a method that it can call to check for liveness.
Trait Implementations§
Source§impl Clone for FuchsiaNetworksProxy
impl Clone for FuchsiaNetworksProxy
Source§fn clone(&self) -> FuchsiaNetworksProxy
fn clone(&self) -> FuchsiaNetworksProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FuchsiaNetworksProxy
impl Debug for FuchsiaNetworksProxy
Source§impl FuchsiaNetworksProxyInterface for FuchsiaNetworksProxy
impl FuchsiaNetworksProxyInterface for FuchsiaNetworksProxy
type SetDefaultResponseFut = QueryResponseFut<Result<(), NetworkRegistrySetDefaultError>>
type AddResponseFut = QueryResponseFut<Result<(), NetworkRegistryAddError>>
type UpdateResponseFut = QueryResponseFut<Result<(), NetworkRegistryUpdateError>>
type RemoveResponseFut = QueryResponseFut<Result<(), NetworkRegistryRemoveError>>
type CheckPresenceResponseFut = QueryResponseFut<()>
fn set_default( &self, network_id: &OptionalUint32, ) -> Self::SetDefaultResponseFut
fn add(&self, network: &Network) -> Self::AddResponseFut
fn update(&self, network: &Network) -> Self::UpdateResponseFut
fn remove(&self, network_id: u32) -> Self::RemoveResponseFut
fn check_presence(&self) -> Self::CheckPresenceResponseFut
Source§impl Proxy for FuchsiaNetworksProxy
impl Proxy for FuchsiaNetworksProxy
Source§type Protocol = FuchsiaNetworksMarker
type Protocol = FuchsiaNetworksMarker
Proxy
controls.