pub struct CanTpChannel(/* private fields */);
Expand description
A CanTpChannel
represents a channel in the CanTp
module
Implementations§
Source§impl CanTpChannel
impl CanTpChannel
Sourcepub fn set_channel_id(
&self,
channel_id: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_channel_id( &self, channel_id: u32, ) -> Result<(), AutosarAbstractionError>
set the channel id of the channel
Sourcepub fn channel_id(&self) -> Option<u32>
pub fn channel_id(&self) -> Option<u32>
get the channel id of the channel
Sourcepub fn set_channel_mode(
&self,
mode: CanTpChannelMode,
) -> Result<(), AutosarAbstractionError>
pub fn set_channel_mode( &self, mode: CanTpChannelMode, ) -> Result<(), AutosarAbstractionError>
set the channel mode of the channel
Sourcepub fn channel_mode(&self) -> Option<CanTpChannelMode>
pub fn channel_mode(&self) -> Option<CanTpChannelMode>
get the channel mode of the channel
Trait Implementations§
Source§impl AbstractionElement for CanTpChannel
impl AbstractionElement for CanTpChannel
Source§impl Clone for CanTpChannel
impl Clone for CanTpChannel
Source§fn clone(&self) -> CanTpChannel
fn clone(&self) -> CanTpChannel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CanTpChannel
impl Debug for CanTpChannel
Source§impl From<CanTpChannel> for Element
impl From<CanTpChannel> for Element
Source§fn from(val: CanTpChannel) -> Self
fn from(val: CanTpChannel) -> Self
Converts to this type from the input type.
Source§impl Hash for CanTpChannel
impl Hash for CanTpChannel
Source§impl PartialEq for CanTpChannel
impl PartialEq for CanTpChannel
Source§impl TryFrom<Element> for CanTpChannel
impl TryFrom<Element> for CanTpChannel
impl Eq for CanTpChannel
impl StructuralPartialEq for CanTpChannel
Auto Trait Implementations§
impl Freeze for CanTpChannel
impl !RefUnwindSafe for CanTpChannel
impl Send for CanTpChannel
impl Sync for CanTpChannel
impl Unpin for CanTpChannel
impl !UnwindSafe for CanTpChannel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.