pub struct InterfaceDefinition { /* private fields */ }Implementations§
Source§impl InterfaceDefinition
impl InterfaceDefinition
pub fn new( name: InterfaceName, kind: InterfaceKind, enabled: bool, settings: Vec<InterfaceSetting>, ) -> Result<Self, InterfaceDefinitionError>
pub fn new_with_rnode_multi_radios( name: InterfaceName, kind: InterfaceKind, enabled: bool, settings: Vec<InterfaceSetting>, rnode_multi_radios: Vec<RNodeMultiRadioDefinition>, ) -> Result<Self, InterfaceDefinitionError>
pub fn new_named_with_rnode_multi_radios( source_name: impl Into<String>, name: InterfaceName, kind: InterfaceKind, enabled: bool, settings: Vec<InterfaceSetting>, rnode_multi_radios: Vec<RNodeMultiRadioDefinition>, ) -> Result<Self, InterfaceDefinitionError>
pub fn name(&self) -> &InterfaceName
pub const fn kind(&self) -> InterfaceKind
pub const fn enabled(&self) -> bool
pub fn settings(&self) -> &[InterfaceSetting]
pub fn rnode_multi_radios(&self) -> &[RNodeMultiRadioDefinition]
Trait Implementations§
Source§impl Clone for InterfaceDefinition
impl Clone for InterfaceDefinition
Source§fn clone(&self) -> InterfaceDefinition
fn clone(&self) -> InterfaceDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InterfaceDefinition
impl Debug for InterfaceDefinition
Source§impl PartialEq for InterfaceDefinition
impl PartialEq for InterfaceDefinition
impl StructuralPartialEq for InterfaceDefinition
Auto Trait Implementations§
impl Freeze for InterfaceDefinition
impl RefUnwindSafe for InterfaceDefinition
impl Send for InterfaceDefinition
impl Sync for InterfaceDefinition
impl Unpin for InterfaceDefinition
impl UnsafeUnpin for InterfaceDefinition
impl UnwindSafe for InterfaceDefinition
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