pub struct ByteStore<T>(/* private fields */);Expand description
Builds stores that support a configurable number of bytes.
Objects must support the [SimObject] trait. The returned Store uses
total_bytes to decide
whether there is enough free byte capacity to accept each object.
Implementations§
Source§impl<T> ByteStore<T>where
T: SimObject,
impl<T> ByteStore<T>where
T: SimObject,
Auto Trait Implementations§
impl<T> Freeze for ByteStore<T>
impl<T> RefUnwindSafe for ByteStore<T>where
T: RefUnwindSafe,
impl<T> Send for ByteStore<T>where
T: Send,
impl<T> Sync for ByteStore<T>where
T: Sync,
impl<T> Unpin for ByteStore<T>where
T: Unpin,
impl<T> UnsafeUnpin for ByteStore<T>
impl<T> UnwindSafe for ByteStore<T>where
T: UnwindSafe,
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