pub struct MockSource {
pub latency: f64,
pub bytes: u64,
pub reject: Vec<CellKey>,
/* private fields */
}Expand description
Einfache Platzhalter-Quelle: lädt nach latency Sekunden fertig,
Payload ist der Zellschlüssel selbst, Größe fest. Für Tests und
Offline-Demos — M3c ersetzt sie durch den IO-Thread-Pool.
Fields§
§latency: f64Sekunden von start bis Ready.
bytes: u64Vorgeschriebene Größe jeder Payload.
reject: Vec<CellKey>Zellen, die diese Quelle ablehnt (Fehlerpfad testen).
Implementations§
Trait Implementations§
Source§impl CellSource for MockSource
impl CellSource for MockSource
Source§impl Clone for MockSource
impl Clone for MockSource
Source§fn clone(&self) -> MockSource
fn clone(&self) -> MockSource
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 moreAuto Trait Implementations§
impl Freeze for MockSource
impl RefUnwindSafe for MockSource
impl Send for MockSource
impl Sync for MockSource
impl Unpin for MockSource
impl UnsafeUnpin for MockSource
impl UnwindSafe for MockSource
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