pub struct ChannelWriter<'a> { /* private fields */ }Expand description
Mutable access to channel data within a memory image.
Created via MemoryImage::channels_mut.
Implementations§
Source§impl<'a> ChannelWriter<'a>
impl<'a> ChannelWriter<'a>
Sourcepub fn set(&mut self, entry: &ChannelEntry) -> Result<(), MemoryError>
pub fn set(&mut self, entry: &ChannelEntry) -> Result<(), MemoryError>
Write a channel entry into the memory image.
Updates the flag, memory data, and name regions for the given channel number.
§Errors
Returns MemoryError::ChannelOutOfRange if the channel number
exceeds the maximum.
Sourcepub fn set_group_name(
&mut self,
group: u8,
name: &str,
) -> Result<(), MemoryError>
pub fn set_group_name( &mut self, group: u8, name: &str, ) -> Result<(), MemoryError>
Write a group name (up to 16 bytes, null-padded).
Group indices are 0-29.
§Errors
Returns MemoryError::ChannelOutOfRange if the group index
is out of range.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ChannelWriter<'a>
impl<'a> RefUnwindSafe for ChannelWriter<'a>
impl<'a> Send for ChannelWriter<'a>
impl<'a> Sync for ChannelWriter<'a>
impl<'a> Unpin for ChannelWriter<'a>
impl<'a> !UnwindSafe for ChannelWriter<'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