Struct CellBroadcastProxy
pub struct CellBroadcastProxy<'p>(Proxy<'p>);Expand description
Client for the cell broadcast features of a modem.
The interface appears once the modem can register. Subscribe to added
before you call list so that no message slips between the two.
Added in ModemManager 1.24.
Upstream documentation: https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.CellBroadcast.html.
Tuple Fields§
§0: Proxy<'p>Implementations§
§impl<'p> CellBroadcastProxy<'p>
impl<'p> CellBroadcastProxy<'p>
pub async fn new<P>(
conn: &Connection,
path: P,
) -> Result<CellBroadcastProxy<'p>>
pub async fn new<P>( conn: &Connection, path: P, ) -> Result<CellBroadcastProxy<'p>>
Creates a new proxy with the given path, and the default destination.
pub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
pub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
pub fn inner(&self) -> &Proxy<'p>
pub fn inner(&self) -> &Proxy<'p>
The reference to the underlying zbus::Proxy.
pub 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.
pub async fn list(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn list(&self) -> Result<Vec<OwnedObjectPath>>
Lists all cell broadcast messages.
Call it once and follow the added and deleted signals afterwards.
pub async fn set_channels(&self, channels: &[(u32, u32)]) -> Result<()>
pub async fn set_channels(&self, channels: &[(u32, u32)]) -> Result<()>
Sets the channels to receive messages for.
Each pair is the first and the last channel of a range.
pub async fn receive_added(&self) -> Result<AddedStream>
pub async fn receive_added(&self) -> Result<AddedStream>
Create a stream that receives Added signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Sent when a part of a new message arrived.
The message can be incomplete, so check its state.
pub async fn receive_added_with_args(
&self,
args: &[(u8, &str)],
) -> Result<AddedStream>
pub async fn receive_added_with_args( &self, args: &[(u8, &str)], ) -> Result<AddedStream>
Create a stream that receives Added signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
Sent when a part of a new message arrived.
The message can be incomplete, so check its state.
pub async fn receive_deleted(&self) -> Result<DeletedStream>
pub async fn receive_deleted(&self) -> Result<DeletedStream>
Create a stream that receives Deleted signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Sent when a message was deleted.
pub async fn receive_deleted_with_args(
&self,
args: &[(u8, &str)],
) -> Result<DeletedStream>
pub async fn receive_deleted_with_args( &self, args: &[(u8, &str)], ) -> Result<DeletedStream>
Create a stream that receives Deleted signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
Sent when a message was deleted.
pub async fn cell_broadcasts(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn cell_broadcasts(&self) -> Result<Vec<OwnedObjectPath>>
The cell broadcast messages.
pub fn cached_cell_broadcasts(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_cell_broadcasts( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
The cell broadcast messages.
Get the cached value of the CellBroadcasts property, or None if the property is not cached.
pub async fn receive_cell_broadcasts_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
pub async fn receive_cell_broadcasts_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
The cell broadcast messages.
Create a stream for the CellBroadcasts property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub fn cached_channels(
&self,
) -> Result<Option<<Result<Vec<(u32, u32)>> as ResultAdapter>::Ok>, <Result<Vec<(u32, u32)>> as ResultAdapter>::Err>
pub fn cached_channels( &self, ) -> Result<Option<<Result<Vec<(u32, u32)>> as ResultAdapter>::Ok>, <Result<Vec<(u32, u32)>> as ResultAdapter>::Err>
The channel ranges that the modem receives.
Get the cached value of the Channels property, or None if the property is not cached.
pub async fn receive_channels_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<(u32, u32)>> as ResultAdapter>::Ok>
pub async fn receive_channels_changed( &self, ) -> PropertyStream<'p, <Result<Vec<(u32, u32)>> as ResultAdapter>::Ok>
The channel ranges that the modem receives.
Create a stream for the Channels property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
Trait Implementations§
§impl<'p> AsMut<Proxy<'p>> for CellBroadcastProxy<'p>
impl<'p> AsMut<Proxy<'p>> for CellBroadcastProxy<'p>
§impl<'p> AsRef<Proxy<'p>> for CellBroadcastProxy<'p>
impl<'p> AsRef<Proxy<'p>> for CellBroadcastProxy<'p>
§impl<'p> Clone for CellBroadcastProxy<'p>
impl<'p> Clone for CellBroadcastProxy<'p>
§fn clone(&self) -> CellBroadcastProxy<'p>
fn clone(&self) -> CellBroadcastProxy<'p>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more