pub struct Gate { /* private fields */ }
Expand description
The gate model passes or blocks jobs, when it is in the open or closed state, respectively. The gate can be opened and closed throughout the course of a simulation. This model contains no stochastic behavior - job passing/blocking is based purely on the state of the model at that time in the simulation. A blocked job is a dropped job - it is not stored, queued, or redirected.
Implementations
sourceimpl Gate
impl Gate
pub fn from_value(value: Value) -> Option<Box<dyn ReportableModel>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Gate
impl<'de> Deserialize<'de> for Gate
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl DevsModel for Gate
impl DevsModel for Gate
fn events_ext(
&mut self,
incoming_message: &ModelMessage,
services: &mut Services
) -> Result<(), SimulationError>
fn events_int(
&mut self,
services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
fn time_advance(&mut self, time_delta: f64)
fn until_next_event(&self) -> f64
sourceimpl Reportable for Gate
impl Reportable for Gate
sourceimpl SerializableModel for Gate
impl SerializableModel for Gate
impl ReportableModel for Gate
Auto Trait Implementations
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnwindSafe for Gate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ModelClone for T where
T: 'static + ReportableModel + Clone,
impl<T> ModelClone for T where
T: 'static + ReportableModel + Clone,
fn clone_box(&self) -> Box<dyn ReportableModel>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more