pub struct WifiP2PProxy<'p>(/* private fields */);Implementations§
Source§impl WifiP2PProxy<'_>
impl WifiP2PProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<WifiP2PProxy<'_>>
Source§impl<'p> WifiP2PProxy<'p>
impl<'p> WifiP2PProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<WifiP2PProxy<'p>>
pub async fn new(conn: &Connection) -> Result<WifiP2PProxy<'p>>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
Sourcepub async fn start_find(&self, options: HashMap<&str, Value<'_>>) -> Result<()>
pub async fn start_find(&self, options: HashMap<&str, Value<'_>>) -> Result<()>
StartFind method
Sourcepub async fn receive_peer_added(&self) -> Result<PeerAddedStream>
pub async fn receive_peer_added(&self) -> Result<PeerAddedStream>
Create a stream that receives PeerAdded signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
PeerAdded signal
Sourcepub async fn receive_peer_added_with_args(
&self,
args: &[(u8, &str)],
) -> Result<PeerAddedStream>
pub async fn receive_peer_added_with_args( &self, args: &[(u8, &str)], ) -> Result<PeerAddedStream>
Create a stream that receives PeerAdded signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
PeerAdded signal
Sourcepub async fn receive_peer_removed(&self) -> Result<PeerRemovedStream>
pub async fn receive_peer_removed(&self) -> Result<PeerRemovedStream>
Create a stream that receives PeerRemoved signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
PeerRemoved signal
Sourcepub async fn receive_peer_removed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<PeerRemovedStream>
pub async fn receive_peer_removed_with_args( &self, args: &[(u8, &str)], ) -> Result<PeerRemovedStream>
Create a stream that receives PeerRemoved signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
PeerRemoved signal
Sourcepub async fn hw_address(&self) -> Result<String>
pub async fn hw_address(&self) -> Result<String>
HwAddress property
Sourcepub fn cached_hw_address(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_hw_address( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
HwAddress property
Get the cached value of the HwAddress property, or None if the property is not cached.
Sourcepub async fn receive_hw_address_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_hw_address_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
HwAddress property
Create a stream for the HwAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn peers(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn peers(&self) -> Result<Vec<OwnedObjectPath>>
Peers property
Sourcepub fn cached_peers(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_peers( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
Peers property
Get the cached value of the Peers property, or None if the property is not cached.
Sourcepub async fn receive_peers_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
pub async fn receive_peers_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
Peers property
Create a stream for the Peers property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for WifiP2PProxy<'p>
impl<'p> AsMut<Proxy<'p>> for WifiP2PProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for WifiP2PProxy<'p>
impl<'p> AsRef<Proxy<'p>> for WifiP2PProxy<'p>
Source§impl<'p> Clone for WifiP2PProxy<'p>
impl<'p> Clone for WifiP2PProxy<'p>
Source§fn clone(&self) -> WifiP2PProxy<'p>
fn clone(&self) -> WifiP2PProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more