pub struct FixedSource {
pub offset: f64,
pub srate: f64,
pub reset: bool,
pub now: f64,
}Expand description
A source with values that a test sets by hand.
Fields§
§offset: f64The offset to return.
srate: f64The rate to return.
reset: boolThe reset flag to return.
now: f64The clock to return. A test moves it forward by hand.
Trait Implementations§
Source§impl Clone for FixedSource
impl Clone for FixedSource
Source§fn clone(&self) -> FixedSource
fn clone(&self) -> FixedSource
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 FixedSource
impl Debug for FixedSource
Source§impl OffsetSource for FixedSource
impl OffsetSource for FixedSource
Auto Trait Implementations§
impl Freeze for FixedSource
impl RefUnwindSafe for FixedSource
impl Send for FixedSource
impl Sync for FixedSource
impl Unpin for FixedSource
impl UnsafeUnpin for FixedSource
impl UnwindSafe for FixedSource
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