pub struct CemiFrame { /* private fields */ }Implementations§
Source§impl CemiFrame
impl CemiFrame
pub const DEFAULT_CONTROL1: u8 = 0xbc
pub const DEFAULT_CONTROL2_GROUP: u8 = 0xe0
pub const fn new(message_code: CemiMessageCode, telegram: GroupTelegram) -> Self
pub fn group_value_read( source: IndividualAddress, destination: GroupAddress, ) -> Result<Self>
pub fn group_value_response( source: IndividualAddress, destination: GroupAddress, payload: &[u8], ) -> Result<Self>
pub fn group_value_write( source: IndividualAddress, destination: GroupAddress, payload: &[u8], ) -> Result<Self>
pub const fn message_code(&self) -> CemiMessageCode
pub const fn control1(&self) -> u8
pub const fn control2(&self) -> u8
pub const fn telegram(&self) -> &GroupTelegram
Sourcepub fn additional_info(&self) -> &[u8] ⓘ
pub fn additional_info(&self) -> &[u8] ⓘ
Opaque cEMI additional-info bytes (empty for constructor-built frames).
Sourcepub fn with_additional_info(
self,
additional_info: impl Into<Vec<u8>>,
) -> Result<Self>
pub fn with_additional_info( self, additional_info: impl Into<Vec<u8>>, ) -> Result<Self>
Returns the frame with the given opaque additional-info block.
The cEMI additional-info length is a single octet, so the block must
be at most 255 bytes; longer input is rejected with
KnxError::InvalidFrame("additional info too long").
pub fn decode(input: &[u8]) -> Result<(Self, &[u8])>
pub fn encode(&self, out: &mut Vec<u8>) -> Result<()>
Trait Implementations§
impl Eq for CemiFrame
impl StructuralPartialEq for CemiFrame
Auto Trait Implementations§
impl Freeze for CemiFrame
impl RefUnwindSafe for CemiFrame
impl Send for CemiFrame
impl Sync for CemiFrame
impl Unpin for CemiFrame
impl UnsafeUnpin for CemiFrame
impl UnwindSafe for CemiFrame
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