pub struct TypedLoan<'a, T: Pod> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, T: Pod> TypedLoan<'a, T>
impl<'a, T: Pod> TypedLoan<'a, T>
Sourcepub fn as_mut(&mut self) -> &mut T
pub fn as_mut(&mut self) -> &mut T
Returns a mutable reference to the T value in shared memory.
Use this for the born-in-SHM pattern: fill fields individually,
then call publish.
Sourcepub fn send(self, value: T)
pub fn send(self, value: T)
Writes value into the shared-memory block and publishes it,
waking any blocked subscribers.
Sourcepub fn publish(self)
pub fn publish(self)
Publishes whatever was written via as_mut,
waking any blocked subscribers.
Sourcepub fn publish_silent(self)
pub fn publish_silent(self)
Publishes without waking subscribers.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for TypedLoan<'a, T>
impl<'a, T> RefUnwindSafe for TypedLoan<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TypedLoan<'a, T>
impl<'a, T> Sync for TypedLoan<'a, T>where
T: Sync,
impl<'a, T> Unpin for TypedLoan<'a, T>
impl<'a, T> UnsafeUnpin for TypedLoan<'a, T>
impl<'a, T> !UnwindSafe for TypedLoan<'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