MDRaidProxyBlocking

Struct MDRaidProxyBlocking 

Source
pub struct MDRaidProxyBlocking<'p>(/* private fields */);

Implementations§

Source§

impl<'p> MDRaidProxyBlocking<'p>

Source

pub fn new(conn: &Connection) -> Result<MDRaidProxyBlocking<'p>>

Creates a new proxy with the default service and path.

Source

pub fn builder(conn: &Connection) -> Builder<'p, Self>

Returns a customizable builder for this proxy.

Source

pub fn into_inner(self) -> Proxy<'p>

Consumes self, returning the underlying zbus::Proxy.

Source

pub fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.

Source

pub fn inner_mut(&mut self) -> &mut Proxy<'p>

The mutable reference to the underlying zbus::Proxy.

Source

pub fn add_device( &self, device: &ObjectPath<'_>, options: HashMap<&str, Value<'_>>, ) -> Result<()>

AddDevice method

Source

pub fn delete(&self, options: HashMap<&str, Value<'_>>) -> Result<()>

Delete method

Source

pub fn remove_device( &self, device: &ObjectPath<'_>, options: HashMap<&str, Value<'_>>, ) -> Result<()>

RemoveDevice method

Source

pub fn request_sync_action( &self, sync_action: &str, options: HashMap<&str, Value<'_>>, ) -> Result<()>

RequestSyncAction method

Source

pub fn set_bitmap_location( &self, value: &[u8], options: HashMap<&str, Value<'_>>, ) -> Result<()>

SetBitmapLocation method

Source

pub fn start(&self, options: HashMap<&str, Value<'_>>) -> Result<()>

Start method

Source

pub fn stop(&self, options: HashMap<&str, Value<'_>>) -> Result<()>

Stop method

Source

pub fn active_devices( &self, ) -> Result<Vec<(OwnedObjectPath, i32, Vec<String>, u64, HashMap<String, OwnedValue>)>>

ActiveDevices property

Source

pub fn cached_active_devices( &self, ) -> Result<Option<<Result<Vec<(OwnedObjectPath, i32, Vec<String>, u64, HashMap<String, OwnedValue>)>> as ResultAdapter>::Ok>, <Result<Vec<(OwnedObjectPath, i32, Vec<String>, u64, HashMap<String, OwnedValue>)>> as ResultAdapter>::Err>

ActiveDevices property Get the cached value of the ActiveDevices property, or None if the property is not cached.

Source

pub fn receive_active_devices_changed( &self, ) -> PropertyIterator<'p, <Result<Vec<(OwnedObjectPath, i32, Vec<String>, u64, HashMap<String, OwnedValue>)>> as ResultAdapter>::Ok>

ActiveDevices property Create a stream for the ActiveDevices property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn bitmap_location(&self) -> Result<Vec<u8>>

BitmapLocation property

Source

pub fn cached_bitmap_location( &self, ) -> Result<Option<<Result<Vec<u8>> as ResultAdapter>::Ok>, <Result<Vec<u8>> as ResultAdapter>::Err>

BitmapLocation property Get the cached value of the BitmapLocation property, or None if the property is not cached.

Source

pub fn receive_bitmap_location_changed( &self, ) -> PropertyIterator<'p, <Result<Vec<u8>> as ResultAdapter>::Ok>

BitmapLocation property Create a stream for the BitmapLocation property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn child_configuration( &self, ) -> Result<Vec<(String, HashMap<String, OwnedValue>)>>

ChildConfiguration property

Source

pub fn cached_child_configuration( &self, ) -> Result<Option<<Result<Vec<(String, HashMap<String, OwnedValue>)>> as ResultAdapter>::Ok>, <Result<Vec<(String, HashMap<String, OwnedValue>)>> as ResultAdapter>::Err>

ChildConfiguration property Get the cached value of the ChildConfiguration property, or None if the property is not cached.

Source

pub fn receive_child_configuration_changed( &self, ) -> PropertyIterator<'p, <Result<Vec<(String, HashMap<String, OwnedValue>)>> as ResultAdapter>::Ok>

ChildConfiguration property Create a stream for the ChildConfiguration property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn chunk_size(&self) -> Result<u64>

ChunkSize property

Source

pub fn cached_chunk_size( &self, ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>

ChunkSize property Get the cached value of the ChunkSize property, or None if the property is not cached.

Source

pub fn receive_chunk_size_changed( &self, ) -> PropertyIterator<'p, <Result<u64> as ResultAdapter>::Ok>

ChunkSize property Create a stream for the ChunkSize property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn degraded(&self) -> Result<u32>

Degraded property

Source

pub fn cached_degraded( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Degraded property Get the cached value of the Degraded property, or None if the property is not cached.

Source

pub fn receive_degraded_changed( &self, ) -> PropertyIterator<'p, <Result<u32> as ResultAdapter>::Ok>

Degraded property Create a stream for the Degraded property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn level(&self) -> Result<String>

Level property

Source

pub fn cached_level( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Level property Get the cached value of the Level property, or None if the property is not cached.

Source

pub fn receive_level_changed( &self, ) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>

Level property Create a stream for the Level property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn name(&self) -> Result<String>

Name property

Source

pub fn cached_name( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Name property Get the cached value of the Name property, or None if the property is not cached.

Source

pub fn receive_name_changed( &self, ) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>

Name property Create a stream for the Name property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn num_devices(&self) -> Result<u32>

NumDevices property

Source

pub fn cached_num_devices( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

NumDevices property Get the cached value of the NumDevices property, or None if the property is not cached.

Source

pub fn receive_num_devices_changed( &self, ) -> PropertyIterator<'p, <Result<u32> as ResultAdapter>::Ok>

NumDevices property Create a stream for the NumDevices property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn running(&self) -> Result<bool>

Running property

Source

pub fn cached_running( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>

Running property Get the cached value of the Running property, or None if the property is not cached.

Source

pub fn receive_running_changed( &self, ) -> PropertyIterator<'p, <Result<bool> as ResultAdapter>::Ok>

Running property Create a stream for the Running property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn size(&self) -> Result<u64>

Size property

Source

pub fn cached_size( &self, ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>

Size property Get the cached value of the Size property, or None if the property is not cached.

Source

pub fn receive_size_changed( &self, ) -> PropertyIterator<'p, <Result<u64> as ResultAdapter>::Ok>

Size property Create a stream for the Size property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn sync_action(&self) -> Result<String>

SyncAction property

Source

pub fn cached_sync_action( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

SyncAction property Get the cached value of the SyncAction property, or None if the property is not cached.

Source

pub fn receive_sync_action_changed( &self, ) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>

SyncAction property Create a stream for the SyncAction property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn sync_completed(&self) -> Result<f64>

SyncCompleted property

Source

pub fn cached_sync_completed( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>

SyncCompleted property Get the cached value of the SyncCompleted property, or None if the property is not cached.

Source

pub fn receive_sync_completed_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok>

SyncCompleted property Create a stream for the SyncCompleted property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn sync_rate(&self) -> Result<u64>

SyncRate property

Source

pub fn cached_sync_rate( &self, ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>

SyncRate property Get the cached value of the SyncRate property, or None if the property is not cached.

Source

pub fn receive_sync_rate_changed( &self, ) -> PropertyIterator<'p, <Result<u64> as ResultAdapter>::Ok>

SyncRate property Create a stream for the SyncRate property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn sync_remaining_time(&self) -> Result<u64>

SyncRemainingTime property

Source

pub fn cached_sync_remaining_time( &self, ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>

SyncRemainingTime property Get the cached value of the SyncRemainingTime property, or None if the property is not cached.

Source

pub fn receive_sync_remaining_time_changed( &self, ) -> PropertyIterator<'p, <Result<u64> as ResultAdapter>::Ok>

SyncRemainingTime property Create a stream for the SyncRemainingTime property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Source

pub fn uuid(&self) -> Result<String>

UUID property

Source

pub fn cached_uuid( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

UUID property Get the cached value of the UUID property, or None if the property is not cached.

Source

pub fn receive_uuid_changed( &self, ) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>

UUID property Create a stream for the UUID property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.

Trait Implementations§

Source§

impl<'p> AsMut<Proxy<'p>> for MDRaidProxyBlocking<'p>

Source§

fn as_mut(&mut self) -> &mut Proxy<'p>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<'p> AsRef<Proxy<'p>> for MDRaidProxyBlocking<'p>

Source§

fn as_ref(&self) -> &Proxy<'p>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'p> Clone for MDRaidProxyBlocking<'p>

Source§

fn clone(&self) -> MDRaidProxyBlocking<'p>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'p> Debug for MDRaidProxyBlocking<'p>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Defaults for MDRaidProxyBlocking<'a>

Source§

const INTERFACE: &'static Option<InterfaceName<'static>>

Source§

const DESTINATION: &'static Option<BusName<'static>>

Source§

const PATH: &'static Option<ObjectPath<'static>>

Source§

impl<'p> From<Proxy<'p>> for MDRaidProxyBlocking<'p>

Source§

fn from(proxy: Proxy<'p>) -> Self

Converts to this type from the input type.
Source§

impl<'p> ProxyImpl<'p> for MDRaidProxyBlocking<'p>

Source§

fn builder(conn: &Connection) -> Builder<'p, Self>

Return a customizable builder for this proxy.
Source§

fn into_inner(self) -> Proxy<'p>

Consume self, returning the underlying zbus::Proxy.
Source§

fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.
Source§

impl<'p> Serialize for MDRaidProxyBlocking<'p>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'p> Type for MDRaidProxyBlocking<'p>

Source§

const SIGNATURE: &'static Signature

The signature for the implementing type, in parsed format. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynamicType for T
where T: Type + ?Sized,

Source§

fn signature(&self) -> Signature

The type signature for self. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more