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>
pub fn set_default( &self, network_id: &OptionalUint32, ) -> QueryResponseFut<NetworkRegistrySetDefaultResult>
Sets the default network.
The network must have previously been registered by a call to Add
.
sourcepub fn add(
&self,
network: &Network,
) -> QueryResponseFut<NetworkRegistryAddResult>
pub fn add( &self, network: &Network, ) -> QueryResponseFut<NetworkRegistryAddResult>
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>
pub fn update( &self, network: &Network, ) -> QueryResponseFut<NetworkRegistryUpdateResult>
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>
pub fn remove( &self, network_id: u32, ) -> QueryResponseFut<NetworkRegistryRemoveResult>
Remove a previously Added network. This call will not return until the DNS servers have been successfully updated in netcfg.
Trait Implementations§
source§impl Clone for StarnixNetworksProxy
impl Clone for StarnixNetworksProxy
source§fn clone(&self) -> StarnixNetworksProxy
fn clone(&self) -> StarnixNetworksProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StarnixNetworksProxy
impl Debug for StarnixNetworksProxy
source§impl Proxy for StarnixNetworksProxy
impl Proxy for StarnixNetworksProxy
§type Protocol = StarnixNetworksMarker
type Protocol = StarnixNetworksMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
source§impl StarnixNetworksProxyInterface for StarnixNetworksProxy
impl StarnixNetworksProxyInterface for StarnixNetworksProxy
type SetDefaultResponseFut = QueryResponseFut<Result<(), NetworkRegistrySetDefaultError>>
fn set_default( &self, network_id: &OptionalUint32, ) -> Self::SetDefaultResponseFut
type AddResponseFut = QueryResponseFut<Result<(), NetworkRegistryAddError>>
fn add(&self, network: &Network) -> Self::AddResponseFut
type UpdateResponseFut = QueryResponseFut<Result<(), NetworkRegistryUpdateError>>
fn update(&self, network: &Network) -> Self::UpdateResponseFut
type RemoveResponseFut = QueryResponseFut<Result<(), NetworkRegistryRemoveError>>
fn remove(&self, network_id: u32) -> Self::RemoveResponseFut
Auto Trait Implementations§
impl Freeze for StarnixNetworksProxy
impl !RefUnwindSafe for StarnixNetworksProxy
impl Send for StarnixNetworksProxy
impl Sync for StarnixNetworksProxy
impl Unpin for StarnixNetworksProxy
impl !UnwindSafe for StarnixNetworksProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)