pub struct NetworkManagerProxy { /* private fields */ }
Implementations§
source§impl NetworkManagerProxy
impl NetworkManagerProxy
sourcepub fn take_event_stream(&self) -> NetworkManagerEventStream
pub fn take_event_stream(&self) -> NetworkManagerEventStream
Get a Stream of events from the remote end of the NetworkManager protocol
Panics
Panics if the event stream was already taken.
sourcepub fn list_networks(&self) -> QueryResponseFut<Vec<String>>
pub fn list_networks(&self) -> QueryResponseFut<Vec<String>>
Lists emulated networks by name.
sourcepub fn create_network(
&self,
name: &str,
config: NetworkConfig
) -> QueryResponseFut<(i32, Option<ClientEnd<NetworkMarker>>)>
pub fn create_network( &self, name: &str, config: NetworkConfig ) -> QueryResponseFut<(i32, Option<ClientEnd<NetworkMarker>>)>
Creates a new network with given name and config.
sourcepub fn get_network(
&self,
name: &str
) -> QueryResponseFut<Option<ClientEnd<NetworkMarker>>>
pub fn get_network( &self, name: &str ) -> QueryResponseFut<Option<ClientEnd<NetworkMarker>>>
Gets a handle to a network.
Trait Implementations§
source§impl Clone for NetworkManagerProxy
impl Clone for NetworkManagerProxy
source§fn clone(&self) -> NetworkManagerProxy
fn clone(&self) -> NetworkManagerProxy
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 NetworkManagerProxy
impl Debug for NetworkManagerProxy
source§impl NetworkManagerProxyInterface for NetworkManagerProxy
impl NetworkManagerProxyInterface for NetworkManagerProxy
type ListNetworksResponseFut = QueryResponseFut<Vec<String, Global>>
fn list_networks(&self) -> Self::ListNetworksResponseFut
type CreateNetworkResponseFut = QueryResponseFut<(i32, Option<ClientEnd<NetworkMarker>>)>
fn create_network( &self, name: &str, config: NetworkConfig ) -> Self::CreateNetworkResponseFut
type GetNetworkResponseFut = QueryResponseFut<Option<ClientEnd<NetworkMarker>>>
fn get_network(&self, name: &str) -> Self::GetNetworkResponseFut
source§impl Proxy for NetworkManagerProxy
impl Proxy for NetworkManagerProxy
§type Protocol = NetworkManagerMarker
type Protocol = NetworkManagerMarker
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