pub struct ClockSourceExt {
pub name: String,
pub value: Option<String>,
}Expand description
Extended clock source.
Fields§
§name: String§value: Option<String>Implementations§
Source§impl ClockSourceExt
impl ClockSourceExt
Sourcepub fn new(name: impl ToString) -> Self
pub fn new(name: impl ToString) -> Self
Constructs a ClockSourceExt with the specified name.
Sourcepub fn with_value(name: impl ToString, value: impl ToString) -> Self
pub fn with_value(name: impl ToString, value: impl ToString) -> Self
Constructs a ClockSourceExt with the specified name and value.
pub fn set_value(&mut self, value: impl ToString)
Sourcepub fn builder(name: impl ToString) -> ClockSourceExt
pub fn builder(name: impl ToString) -> ClockSourceExt
Constructs a crate::builders::ClockSourceExt.
Trait Implementations§
Source§impl Clone for ClockSourceExt
impl Clone for ClockSourceExt
Source§fn clone(&self) -> ClockSourceExt
fn clone(&self) -> ClockSourceExt
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 ClockSourceExt
impl Debug for ClockSourceExt
Source§impl Display for ClockSourceExt
impl Display for ClockSourceExt
impl Eq for ClockSourceExt
Source§impl From<ClockSourceExt> for ReferenceClock
impl From<ClockSourceExt> for ReferenceClock
Source§fn from(clock_src_ext: ClockSourceExt) -> Self
fn from(clock_src_ext: ClockSourceExt) -> Self
Converts to this type from the input type.
Source§impl FromStr for ClockSourceExt
impl FromStr for ClockSourceExt
Source§impl PartialEq for ClockSourceExt
impl PartialEq for ClockSourceExt
impl StructuralPartialEq for ClockSourceExt
Auto Trait Implementations§
impl Freeze for ClockSourceExt
impl RefUnwindSafe for ClockSourceExt
impl Send for ClockSourceExt
impl Sync for ClockSourceExt
impl Unpin for ClockSourceExt
impl UnsafeUnpin for ClockSourceExt
impl UnwindSafe for ClockSourceExt
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