pub struct LiveUpdate<'a> { /* private fields */ }Expand description
The blocks one Context::update_live call
brings to their current version; every block that changed goes into the
one alert the call appends.
Implementations§
Source§impl<'a> LiveUpdate<'a>
impl<'a> LiveUpdate<'a>
Sourcepub fn instruction(
&mut self,
slot: &InstructionSlot,
desired: Option<String>,
) -> &mut Self
pub fn instruction( &mut self, slot: &InstructionSlot, desired: Option<String>, ) -> &mut Self
Brings the instruction block in slot to desired, stored verbatim;
None removes the block.
§Panics
Panics if the layout has no such slot.
Sourcepub fn external(
&mut self,
slot: &ExternalSlot,
desired: Option<ExternalContent>,
) -> &mut Self
pub fn external( &mut self, slot: &ExternalSlot, desired: Option<ExternalContent>, ) -> &mut Self
Brings the external-content block in slot to desired; None
removes the block.
§Panics
Panics if the layout has no such slot.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for LiveUpdate<'a>
impl<'a> Forget for LiveUpdate<'a>
impl<'a> Freeze for LiveUpdate<'a>
impl<'a> Move for LiveUpdate<'a>
impl<'a> RefUnwindSafe for LiveUpdate<'a>
impl<'a> Send for LiveUpdate<'a>
impl<'a> Sync for LiveUpdate<'a>
impl<'a> Unpin for LiveUpdate<'a>
impl<'a> UnsafeUnpin for LiveUpdate<'a>
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