#[non_exhaustive]pub struct Str;
Expand description
§Examples
use tokio_dbus::{BodyBuf, Signature};
use tokio_dbus::ty;
let mut buf = BodyBuf::new();
buf.store_struct::<(u8, ty::Str)>()?
.store(42u8)
.store("Hello World!")
.finish();
assert_eq!(buf.signature(), b"(ys)");
let mut b = buf.as_body();
let (n, value) = b.load_struct::<(u8, ty::Str)>()?;
assert_eq!(n, 42u8);
assert_eq!(value, "Hello World!");
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Str
impl RefUnwindSafe for Str
impl Send for Str
impl Sync for Str
impl Unpin for Str
impl UnwindSafe for Str
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