pub struct SendGuard<'a, M: Flat + ?Sized, B: AsyncWriteBuffer + 'a, const INIT: bool = true> { /* private fields */ }
Implementations§
Source§impl<'a, M: Flat + ?Sized, B: AsyncWriteBuffer + 'a> SendGuard<'a, M, B, false>
impl<'a, M: Flat + ?Sized, B: AsyncWriteBuffer + 'a> SendGuard<'a, M, B, false>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_mut_bytes(&mut self) -> &mut [u8] ⓘ
Sourcepub unsafe fn assume_init(self) -> SendGuard<'a, M, B>
pub unsafe fn assume_init(self) -> SendGuard<'a, M, B>
§Safety
Underlying message data must be initialized.
pub fn new_in_place( self, emplacer: impl Emplacer<M>, ) -> Result<SendGuard<'a, M, B>, Error>
Source§impl<'a, M: Flat + FlatDefault + ?Sized, B: AsyncWriteBuffer + 'a> SendGuard<'a, M, B, false>
impl<'a, M: Flat + FlatDefault + ?Sized, B: AsyncWriteBuffer + 'a> SendGuard<'a, M, B, false>
pub fn default_in_place(self) -> Result<SendGuard<'a, M, B>, Error>
Trait Implementations§
impl<'a, M: Flat + ?Sized, B: AsyncWriteBuffer, const INIT: bool> Unpin for SendGuard<'a, M, B, INIT>
Auto Trait Implementations§
impl<'a, M, B, const INIT: bool> Freeze for SendGuard<'a, M, B, INIT>where
M: ?Sized,
impl<'a, M, B, const INIT: bool> RefUnwindSafe for SendGuard<'a, M, B, INIT>
impl<'a, M, B, const INIT: bool> Send for SendGuard<'a, M, B, INIT>
impl<'a, M, B, const INIT: bool> Sync for SendGuard<'a, M, B, INIT>
impl<'a, M, B, const INIT: bool = true> !UnwindSafe for SendGuard<'a, M, B, INIT>
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