pub struct Variant {
pub object: Box<Value>,
pub signature: Signature,
}Expand description
A Variant is a boxed type-erased value. It is trasmitted on the wire with its signature. It is useful for arrays with varying types and for allowing DBus method argument types to be determined at runtime. signature contains the signature of the boxed value.
Fields§
§object: Box<Value>§signature: SignatureImplementations§
Trait Implementations§
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more