pub struct DbcRegistry { /* private fields */ }Implementations§
Source§impl DbcRegistry
impl DbcRegistry
pub fn empty() -> Self
pub fn load(specs: &[DbcSpec]) -> Result<Self, String>
pub fn loaded(&self) -> &[DbcSpec]
pub fn is_empty(&self) -> bool
pub fn schema(&self, filter: Option<&Selector>) -> Vec<SchemaMessage>
pub fn resolve_selector( &self, selector: &Selector, ) -> Result<&DbcMessageDef, String>
pub fn matches_for_frame(&self, frame: &CanFrame) -> Vec<&DbcMessageDef>
pub fn decode_selected( &self, qualified_name: &str, frame: &CanFrame, ) -> Result<DecodedSemanticMessage, String>
pub fn encode_payload( &self, selector: &Selector, payload: &MessagePayload, ) -> Result<(String, CanFrame), String>
Trait Implementations§
Source§impl Clone for DbcRegistry
impl Clone for DbcRegistry
Source§fn clone(&self) -> DbcRegistry
fn clone(&self) -> DbcRegistry
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 moreAuto Trait Implementations§
impl Freeze for DbcRegistry
impl RefUnwindSafe for DbcRegistry
impl Send for DbcRegistry
impl Sync for DbcRegistry
impl Unpin for DbcRegistry
impl UnsafeUnpin for DbcRegistry
impl UnwindSafe for DbcRegistry
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