#[non_exhaustive]pub struct ObjectPath;
Expand description
The Marker
for the ObjectPath
type.
§Examples
use tokio_dbus::{BodyBuf, ObjectPath};
use tokio_dbus::ty;
let mut buf = BodyBuf::new();
buf.store_struct::<(u8, ty::ObjectPath)>()?
.store(42u8)
.store(ObjectPath::new("/se/tedro/DBusExample")?)
.finish();
assert_eq!(buf.signature(), b"(yo)");
let mut b = buf.as_body();
let (n, value) = b.load_struct::<(u8, ty::ObjectPath)>()?;
assert_eq!(n, 42u8);
assert_eq!(value, ObjectPath::new("/se/tedro/DBusExample")?);
Trait Implementations§
impl Aligned for ObjectPath
impl Marker for ObjectPath
impl Unsized for ObjectPath
Auto Trait Implementations§
impl Freeze for ObjectPath
impl RefUnwindSafe for ObjectPath
impl Send for ObjectPath
impl Sync for ObjectPath
impl Unpin for ObjectPath
impl UnwindSafe for ObjectPath
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