pub struct StarnixNetworksProxy { /* private fields */ }
Implementations§
Source§impl StarnixNetworksProxy
impl StarnixNetworksProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.netpol.socketproxy/StarnixNetworks.
Sourcepub fn take_event_stream(&self) -> StarnixNetworksEventStream
pub fn take_event_stream(&self) -> StarnixNetworksEventStream
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 StarnixNetworksProxy
impl Clone for StarnixNetworksProxy
Source§fn clone(&self) -> StarnixNetworksProxy
fn clone(&self) -> StarnixNetworksProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StarnixNetworksProxy
impl Debug for StarnixNetworksProxy
Source§impl Proxy for StarnixNetworksProxy
impl Proxy for StarnixNetworksProxy
Source§type Protocol = StarnixNetworksMarker
type Protocol = StarnixNetworksMarker
Proxy
controls.