pub struct Store<T>where
T: SimObject,{ /* private fields */ }Expand description
A component that can support a configurable number of capacity units.
Use ObjectStore to build an object-counted store and ByteStore to build a byte-counted store.
Implementations§
Source§impl<T> Store<T>where
T: SimObject,
impl<T> Store<T>where
T: SimObject,
pub fn connect_port_tx(&self, port_state: PortStateResult<T>) -> SimResult
pub fn port_rx(&self) -> PortStateResult<T>
pub fn capacity_used(&self) -> usize
pub fn set_error_on_overflow(&self)
pub fn set_capacity_unit(&self, capacity_unit: impl Into<String>)
pub fn get_level_change_event(&self) -> Repeated<usize>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Store<T>
impl<T> !RefUnwindSafe for Store<T>
impl<T> !Send for Store<T>
impl<T> !Sync for Store<T>
impl<T> Unpin for Store<T>
impl<T> UnsafeUnpin for Store<T>
impl<T> !UnwindSafe for Store<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