pub struct UsicConfiguration { /* private fields */ }Expand description
Configuration for a (S)USIC node with 24 bit cards.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn try_new(
transmit_delay: u16,
cards: &[NodeCard],
) -> Result<Self, NodeCardsError>
pub fn try_new( transmit_delay: u16, cards: &[NodeCard], ) -> Result<Self, NodeCardsError>
Create a new usic.
§Errors
NodeCardsError::CardAfterNoneif there’s an Input or Output card after a None card.NodeCardsError::TooManyCardsif there’s more than 64 input/output cards.
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 Configuration
impl Debug for Configuration
Source§impl<'de> Deserialize<'de> for Configuration
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Configuration
Available on crate feature
serde only.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 Hash for Configuration
impl Hash for Configuration
Source§impl NodeConfiguration for Configuration
impl NodeConfiguration for Configuration
Source§fn transmit_delay(&self) -> u16
fn transmit_delay(&self) -> u16
The time the node should leave between receiving a request
and sending the reply (to a precision of 10µs, upto 655,350µs).
Source§fn input_bytes(&self) -> u16
fn input_bytes(&self) -> u16
The number of input bytes on the node.
Source§fn output_bytes(&self) -> u16
fn output_bytes(&self) -> u16
The number of output bytes on the node.
Source§fn input_bits(&self) -> u16
fn input_bits(&self) -> u16
The number of input bits on the node.
Source§fn output_bits(&self) -> u16
fn output_bits(&self) -> u16
The number of output bits on the node.
Source§impl PartialEq for Configuration
impl PartialEq for Configuration
Source§impl Serialize for Configuration
Available on crate feature serde only.
impl Serialize for Configuration
Available on crate feature
serde only.impl Copy for Configuration
impl Eq for Configuration
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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