Struct tokio_dbus::StoreArray
source · pub struct StoreArray<'a, T>where
T: Aligned,{ /* private fields */ }
Expand description
Write a typed array.
See BodyBuf::store_array
.
Implementations§
source§impl<'a, T> StoreArray<'a, T>where
T: Aligned,
impl<'a, T> StoreArray<'a, T>where
T: Aligned,
sourcepub fn finish(self)
pub fn finish(self)
Finish writing the array.
This will also be done implicitly once this is dropped.
See BodyBuf::store_array
.
source§impl<'a, T> StoreArray<'a, T>where
T: Aligned,
impl<'a, T> StoreArray<'a, T>where
T: Aligned,
sourcepub fn store(&mut self, value: T::Return<'_>)
pub fn store(&mut self, value: T::Return<'_>)
Store a value and return the builder for the next value to store.
See BodyBuf::store_array
.
sourcepub fn store_struct(&mut self) -> StoreStruct<'_, T>where
T: Fields,
pub fn store_struct(&mut self) -> StoreStruct<'_, T>where
T: Fields,
Write a struct inside of the array.
See BodyBuf::store_array
.
source§impl<'a, T> StoreArray<'a, Array<T>>where
T: Aligned,
impl<'a, T> StoreArray<'a, Array<T>>where
T: Aligned,
sourcepub fn store_array(&mut self) -> StoreArray<'_, T>
pub fn store_array(&mut self) -> StoreArray<'_, T>
Write an array inside of the array.
See BodyBuf::store_array
.
source§impl<'a> StoreArray<'a, u8>
impl<'a> StoreArray<'a, u8>
sourcepub fn write_slice(self, bytes: &[u8])
pub fn write_slice(self, bytes: &[u8])
Write a byte array inside of the array.
See BodyBuf::store_array
.
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for StoreArray<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for StoreArray<'a, T>where
T: Send,
impl<'a, T> Sync for StoreArray<'a, T>where
T: Sync,
impl<'a, T> Unpin for StoreArray<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for StoreArray<'a, T>
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