pub struct Stack {
pub name_manager: Manager,
/* private fields */
}
Fields§
§name_manager: Manager
Implementations§
Source§impl Stack
impl Stack
pub fn new() -> Stack
pub fn suspend(&mut self)
pub fn resume(&mut self)
pub fn is_suspended(&self) -> bool
pub fn register_local_name( &mut self, iface: &mut dyn CanInterface, address: u8, name: &Name, ) -> Result<bool, Error>
pub fn on_can_frame( &mut self, iface: &mut dyn CanInterface, id: ExtendedId, data: &FrameData, ) -> Result<bool, Error>
pub fn advance_time( &mut self, iface: &mut dyn CanInterface, time_delta_ms: usize, ) -> Result<bool, Error>
pub fn get_next_timeout_ms(&self) -> Option<u32>
pub fn send_to_address( &mut self, iface: &mut dyn CanInterface, src: &Name, dest: u8, pgn: u32, priority: u8, data: &[u8], ) -> Result<(), Error>
pub fn send_broadcast( &mut self, iface: &mut dyn CanInterface, src: &Name, pgn: u32, priority: u8, data: &[u8], ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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