pub struct NullDevice<T>(/* private fields */);Expand description
A daisy-chain terminator device. Use it as the last device in a chain.
Substitute T with a timestamp type.
Trait Implementations§
Source§impl<T> BusDevice for NullDevice<T>
impl<T> BusDevice for NullDevice<T>
Source§type NextDevice = NullDevice<T>
type NextDevice = NullDevice<T>
A type of the next device in a daisy chain.
Source§fn next_device_mut(&mut self) -> &mut Self::NextDevice
fn next_device_mut(&mut self) -> &mut Self::NextDevice
Returns a mutable reference to the next device.
Source§fn next_device_ref(&self) -> &Self::NextDevice
fn next_device_ref(&self) -> &Self::NextDevice
Returns a reference to the next device.
Source§fn into_next_device(self) -> Self::NextDevice
fn into_next_device(self) -> Self::NextDevice
Destructs self and returns the instance of the next bus device.
Source§fn reset(&mut self, _timestamp: Self::Timestamp)
fn reset(&mut self, _timestamp: Self::Timestamp)
Resets the device and all devices in this chain. Read more
Source§fn update_timestamp(&mut self, _timestamp: Self::Timestamp)
fn update_timestamp(&mut self, _timestamp: Self::Timestamp)
This method should be called near the end of each frame. Read more
Source§fn next_frame(&mut self, _timestamp: Self::Timestamp)
fn next_frame(&mut self, _timestamp: Self::Timestamp)
This method should be called just before the T-state counter of the control unit is wrapped when preparing
for the next frame. Read more
Source§fn read_io(
&mut self,
_port: u16,
_timestamp: Self::Timestamp,
) -> Option<(u8, Option<NonZeroU16>)>
fn read_io( &mut self, _port: u16, _timestamp: Self::Timestamp, ) -> Option<(u8, Option<NonZeroU16>)>
This method is called by the control unit during an I/O read cycle. Read more
Source§impl<T: Clone> Clone for NullDevice<T>
impl<T: Clone> Clone for NullDevice<T>
Source§fn clone(&self) -> NullDevice<T>
fn clone(&self) -> NullDevice<T>
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<T> Debug for NullDevice<T>
impl<T> Debug for NullDevice<T>
Source§impl<T> Default for NullDevice<T>
impl<T> Default for NullDevice<T>
Source§impl<'de, T> Deserialize<'de> for NullDevice<T>
impl<'de, T> Deserialize<'de> for NullDevice<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Display for NullDevice<T>
impl<T> Display for NullDevice<T>
Source§impl<T: PartialEq> PartialEq for NullDevice<T>
impl<T: PartialEq> PartialEq for NullDevice<T>
Source§impl<T> Serialize for NullDevice<T>
impl<T> Serialize for NullDevice<T>
impl<T: Eq> Eq for NullDevice<T>
impl<T> StructuralPartialEq for NullDevice<T>
Auto Trait Implementations§
impl<T> Freeze for NullDevice<T>
impl<T> RefUnwindSafe for NullDevice<T>where
T: RefUnwindSafe,
impl<T> Send for NullDevice<T>where
T: Send,
impl<T> Sync for NullDevice<T>where
T: Sync,
impl<T> Unpin for NullDevice<T>where
T: Unpin,
impl<T> UnwindSafe for NullDevice<T>where
T: UnwindSafe,
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<S, T> IntoSample<S> for Twhere
S: FromSample<T>,
impl<S, T> IntoSample<S> for Twhere
S: FromSample<T>,
Source§fn into_sample(self) -> S
fn into_sample(self) -> S
Convert to
S a sample type from self.