pub struct Logger1Proxy<'p>(/* private fields */);Implementations§
Source§impl<'p> Logger1Proxy<'p>
impl<'p> Logger1Proxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<Logger1Proxy<'p>>
pub async fn new(conn: &Connection) -> Result<Logger1Proxy<'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 get_metadata(&self, key: &str) -> Result<Metadata>
pub async fn get_metadata(&self, key: &str) -> Result<Metadata>
GetMetadata method
Sourcepub async fn set_metadata_description(
&self,
key: &str,
description: &str,
) -> Result<()>
pub async fn set_metadata_description( &self, key: &str, description: &str, ) -> Result<()>
SetMetadataDescription method
Sourcepub async fn set_metadata_mode(&self, key: &str, mode: SensorMode) -> Result<()>
pub async fn set_metadata_mode(&self, key: &str, mode: SensorMode) -> Result<()>
SetMetadataMode method
Sourcepub async fn set_metadata_name(&self, key: &str, name: &str) -> Result<()>
pub async fn set_metadata_name(&self, key: &str, name: &str) -> Result<()>
SetMetadataName method
Sourcepub async fn set_metadata_unit(&self, key: &str, unit: &str) -> Result<()>
pub async fn set_metadata_unit(&self, key: &str, unit: &str) -> Result<()>
SetMetadataUnit method
Sourcepub async fn set_metadata_value_map(
&self,
key: &str,
value_map: ValueMap,
) -> Result<()>
pub async fn set_metadata_value_map( &self, key: &str, value_map: ValueMap, ) -> Result<()>
SetMetadataValueMap method
Sourcepub async fn set_metadata_value_type(
&self,
key: &str,
value_type: DataType,
) -> Result<()>
pub async fn set_metadata_value_type( &self, key: &str, value_type: DataType, ) -> Result<()>
SetMetadataValueType method
Sourcepub async fn receive_metadata_updated(&self) -> Result<MetadataUpdatedStream>
pub async fn receive_metadata_updated(&self) -> Result<MetadataUpdatedStream>
Create a stream that receives MetadataUpdated signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
MetadataUpdated signal
Sourcepub async fn receive_metadata_updated_with_args(
&self,
args: &[(u8, &str)],
) -> Result<MetadataUpdatedStream>
pub async fn receive_metadata_updated_with_args( &self, args: &[(u8, &str)], ) -> Result<MetadataUpdatedStream>
Create a stream that receives MetadataUpdated signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
MetadataUpdated signal
Sourcepub async fn store_batch(&self, batch: HashMap<String, Value<'_>>) -> Result<()>
pub async fn store_batch(&self, batch: HashMap<String, Value<'_>>) -> Result<()>
StoreBatch method, store a batch of key:value for Anachronistic Measures
Sourcepub async fn store(&self, key: String, value: Value<'_>) -> Result<()>
pub async fn store(&self, key: String, value: Value<'_>) -> Result<()>
Store method, store a single key:value of an Anachronistic Measure ( Wraps store_batch internally, only use for ease of porting)
pub async fn store_ts(&self, batch: Vec<(String, Value<'_>, f64)>) -> Result<()>
pub async fn store_rows(&self, rows: Vec<(f64, Vec<Value<'_>>)>) -> Result<()>
Sourcepub async fn receive_store_signal(&self) -> Result<StoreSignalStream>
pub async fn receive_store_signal(&self) -> Result<StoreSignalStream>
Create a stream that receives StoreSignal signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Signal sent when values are stored.
Contents is a vector of (key, value, timestamp)
Sourcepub async fn receive_store_signal_with_args(
&self,
args: &[(u8, &str)],
) -> Result<StoreSignalStream>
pub async fn receive_store_signal_with_args( &self, args: &[(u8, &str)], ) -> Result<StoreSignalStream>
Create a stream that receives StoreSignal signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
Signal sent when values are stored.
Contents is a vector of (key, value, timestamp)
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for Logger1Proxy<'p>
impl<'p> AsMut<Proxy<'p>> for Logger1Proxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for Logger1Proxy<'p>
impl<'p> AsRef<Proxy<'p>> for Logger1Proxy<'p>
Source§impl<'p> Clone for Logger1Proxy<'p>
impl<'p> Clone for Logger1Proxy<'p>
Source§fn clone(&self) -> Logger1Proxy<'p>
fn clone(&self) -> Logger1Proxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more