pub struct StateProxy { /* private fields */ }
Implementations§
Source§impl StateProxy
impl StateProxy
Sourcepub fn take_event_stream(&self) -> StateEventStream
pub fn take_event_stream(&self) -> StateEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_interface_defaults(
&self,
) -> QueryResponseFut<Configuration, DefaultFuchsiaResourceDialect>
pub fn get_interface_defaults( &self, ) -> QueryResponseFut<Configuration, DefaultFuchsiaResourceDialect>
Returns the current default settings for interfaces.
Sourcepub fn get_tcp(&self) -> QueryResponseFut<Tcp, DefaultFuchsiaResourceDialect>
pub fn get_tcp(&self) -> QueryResponseFut<Tcp, DefaultFuchsiaResourceDialect>
Returns the current TCP settings values.
Sourcepub fn get_udp(&self) -> QueryResponseFut<Udp, DefaultFuchsiaResourceDialect>
pub fn get_udp(&self) -> QueryResponseFut<Udp, DefaultFuchsiaResourceDialect>
Returns the current UDP settings values.
Sourcepub fn get_icmp(&self) -> QueryResponseFut<Icmp, DefaultFuchsiaResourceDialect>
pub fn get_icmp(&self) -> QueryResponseFut<Icmp, DefaultFuchsiaResourceDialect>
Returns the current ICMP settings values.
Sourcepub fn get_ip(&self) -> QueryResponseFut<Ip, DefaultFuchsiaResourceDialect>
pub fn get_ip(&self) -> QueryResponseFut<Ip, DefaultFuchsiaResourceDialect>
Returns the current IP settings values.
Sourcepub fn get_device(
&self,
) -> QueryResponseFut<Device, DefaultFuchsiaResourceDialect>
pub fn get_device( &self, ) -> QueryResponseFut<Device, DefaultFuchsiaResourceDialect>
Returns the current device layer settings values.
Trait Implementations§
Source§impl Clone for StateProxy
impl Clone for StateProxy
Source§fn clone(&self) -> StateProxy
fn clone(&self) -> StateProxy
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 StateProxy
impl Debug for StateProxy
Source§impl Proxy for StateProxy
impl Proxy for StateProxy
Source§type Protocol = StateMarker
type Protocol = StateMarker
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 StateProxyInterface for StateProxy
impl StateProxyInterface for StateProxy
type GetInterfaceDefaultsResponseFut = QueryResponseFut<Configuration>
type GetTcpResponseFut = QueryResponseFut<Tcp>
type GetUdpResponseFut = QueryResponseFut<Udp>
type GetIcmpResponseFut = QueryResponseFut<Icmp>
type GetIpResponseFut = QueryResponseFut<Ip>
type GetDeviceResponseFut = QueryResponseFut<Device>
fn get_interface_defaults(&self) -> Self::GetInterfaceDefaultsResponseFut
fn get_tcp(&self) -> Self::GetTcpResponseFut
fn get_udp(&self) -> Self::GetUdpResponseFut
fn get_icmp(&self) -> Self::GetIcmpResponseFut
fn get_ip(&self) -> Self::GetIpResponseFut
fn get_device(&self) -> Self::GetDeviceResponseFut
Auto Trait Implementations§
impl Freeze for StateProxy
impl !RefUnwindSafe for StateProxy
impl Send for StateProxy
impl Sync for StateProxy
impl Unpin for StateProxy
impl !UnwindSafe for StateProxy
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
Converts from a client.