pub struct ModemProxy<'p>(/* private fields */);Implementations§
Source§impl ModemProxy<'_>
impl ModemProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<ModemProxy<'_>>
Source§impl<'p> ModemProxy<'p>
impl<'p> ModemProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<ModemProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ModemProxy<'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 fn cached_apn(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_apn( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Apn property
Get the cached value of the Apn property, or None if the property is not cached.
Sourcepub async fn receive_apn_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_apn_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Apn property
Create a stream for the Apn property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn current_capabilities(&self) -> Result<u32>
pub async fn current_capabilities(&self) -> Result<u32>
CurrentCapabilities property
Sourcepub fn cached_current_capabilities(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_current_capabilities( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
CurrentCapabilities property
Get the cached value of the CurrentCapabilities property, or None if the property is not cached.
Sourcepub async fn receive_current_capabilities_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_current_capabilities_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
CurrentCapabilities property
Create a stream for the CurrentCapabilities property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_device_id(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_device_id( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
DeviceId property
Get the cached value of the DeviceId property, or None if the property is not cached.
Sourcepub async fn receive_device_id_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_device_id_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
DeviceId property
Create a stream for the DeviceId property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn modem_capabilities(&self) -> Result<u32>
pub async fn modem_capabilities(&self) -> Result<u32>
ModemCapabilities property
Sourcepub fn cached_modem_capabilities(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_modem_capabilities( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
ModemCapabilities property
Get the cached value of the ModemCapabilities property, or None if the property is not cached.
Sourcepub async fn receive_modem_capabilities_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_modem_capabilities_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
ModemCapabilities property
Create a stream for the ModemCapabilities property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn operator_code(&self) -> Result<String>
pub async fn operator_code(&self) -> Result<String>
OperatorCode property
Sourcepub fn cached_operator_code(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_operator_code( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
OperatorCode property
Get the cached value of the OperatorCode property, or None if the property is not cached.
Sourcepub async fn receive_operator_code_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_operator_code_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
OperatorCode property
Create a stream for the OperatorCode property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ModemProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ModemProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ModemProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ModemProxy<'p>
Source§impl<'p> Clone for ModemProxy<'p>
impl<'p> Clone for ModemProxy<'p>
Source§fn clone(&self) -> ModemProxy<'p>
fn clone(&self) -> ModemProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more