pub struct RTKitProxyBlocking<'p>(Proxy<'p>);Expand description
Low level interface to the RealtimeKit1 D-Bus service.
Note: due to a missing implementation of GetAll in the canonical rtkit service, you will need to disable the cache for properties in order not to trigger an UnknownMethod error.
Tuple Fields§
§0: Proxy<'p>Implementations§
Source§impl<'p> RTKitProxyBlocking<'p>
impl<'p> RTKitProxyBlocking<'p>
Sourcepub fn new(conn: &Connection) -> Result<RTKitProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<RTKitProxyBlocking<'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.
pub fn make_thread_realtime(&self, thread: u64, priority: u32) -> Result<()>
pub fn make_thread_realtime_with_pid( &self, process: u64, thread: u64, priority: u32, ) -> Result<()>
pub fn make_thread_high_priority( &self, thread: u64, priority: i32, ) -> Result<()>
pub fn make_thread_high_priority_with_pid( &self, process: u64, thread: u64, priority: i32, ) -> Result<()>
pub fn reset_known(&self) -> Result<()>
pub fn reset_all(&self) -> Result<()>
pub fn exit(&self) -> Result<()>
pub fn rt_time_usec_max(&self) -> Result<i64>
Sourcepub fn cached_rt_time_usec_max(
&self,
) -> Result<Option<<Result<i64> as ResultAdapter>::Ok>, <Result<i64> as ResultAdapter>::Err>
pub fn cached_rt_time_usec_max( &self, ) -> Result<Option<<Result<i64> as ResultAdapter>::Ok>, <Result<i64> as ResultAdapter>::Err>
Get the cached value of the RtTimeUsecMax property, or None if the property is not cached.
Sourcepub fn receive_rt_time_usec_max_changed(
&self,
) -> PropertyIterator<'p, <Result<i64> as ResultAdapter>::Ok>
pub fn receive_rt_time_usec_max_changed( &self, ) -> PropertyIterator<'p, <Result<i64> as ResultAdapter>::Ok>
Create a stream for the RtTimeUsecMax property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
pub fn max_realtime_priority(&self) -> Result<i32>
Sourcepub fn cached_max_realtime_priority(
&self,
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_max_realtime_priority( &self, ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the MaxRealtimePriority property, or None if the property is not cached.
Sourcepub fn receive_max_realtime_priority_changed(
&self,
) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
pub fn receive_max_realtime_priority_changed( &self, ) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the MaxRealtimePriority property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
pub fn min_nice_level(&self) -> Result<i32>
Sourcepub fn cached_min_nice_level(
&self,
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_min_nice_level( &self, ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the MinNiceLevel property, or None if the property is not cached.
Sourcepub fn receive_min_nice_level_changed(
&self,
) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
pub fn receive_min_nice_level_changed( &self, ) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the MinNiceLevel property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for RTKitProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for RTKitProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for RTKitProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for RTKitProxyBlocking<'p>
Source§impl<'p> Clone for RTKitProxyBlocking<'p>
impl<'p> Clone for RTKitProxyBlocking<'p>
Source§fn clone(&self) -> RTKitProxyBlocking<'p>
fn clone(&self) -> RTKitProxyBlocking<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more