pub struct Limiter<T>where
T: SimObject,{ /* private fields */ }Expand description
The Limiter is a component that will allow data through at a
specified rate.
The supplied RateLimiter defines the rate in bits per clock tick.
Downstream backpressure overlaps the packet’s service interval. The upstream
handoff completes once both service and downstream acceptance have finished.
Implementations§
Source§impl<T> Limiter<T>where
T: SimObject,
impl<T> Limiter<T>where
T: SimObject,
pub fn new_and_register_with_renames( engine: &Engine, clock: &Clock, parent: &Rc<Entity>, name: &str, aka: Option<&Aka>, limiter: Rc<RateLimiter<T>>, ) -> Rc<Self>
pub fn new_and_register( engine: &Engine, clock: &Clock, parent: &Rc<Entity>, name: &str, limiter: Rc<RateLimiter<T>>, ) -> Rc<Self>
pub fn connect_port_tx(&self, port_state: PortStateResult<T>) -> SimResult
pub fn port_rx(&self) -> PortStateResult<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Limiter<T>
impl<T> !RefUnwindSafe for Limiter<T>
impl<T> !Send for Limiter<T>
impl<T> !Sync for Limiter<T>
impl<T> !UnwindSafe for Limiter<T>
impl<T> Unpin for Limiter<T>
impl<T> UnsafeUnpin for Limiter<T>
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