[−][src]Struct caminos_lib::router::AgnosticParallelBuffers
A simple collection of buffers. The selected virtual channel of the emissor is ignored, the packet is inserted at random in any in which it fits.
Trait Implementations
impl SpaceAtReceptor for AgnosticParallelBuffers
[src]
pub fn insert(
&mut self,
phit: Rc<Phit>,
rng: &RefCell<StdRng>
) -> Result<(), ()>
[src]
&mut self,
phit: Rc<Phit>,
rng: &RefCell<StdRng>
) -> Result<(), ()>
pub fn front_iter(&self) -> Box<dyn Iterator<Item = Rc<Phit>>>
[src]
pub fn front_virtual_channel(&self, virtual_channel: usize) -> Option<Rc<Phit>>
[src]
Note that although we ignore the virtual channel for the emissor we consider the buffer index to be the current virtual channel.
pub fn extract(
&mut self,
virtual_channel: usize
) -> Result<(Rc<Phit>, Option<AcknowledgeMessage>), ()>
[src]
&mut self,
virtual_channel: usize
) -> Result<(Rc<Phit>, Option<AcknowledgeMessage>), ()>
pub fn iter_phits(&self) -> Box<dyn Iterator<Item = Rc<Phit>>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AgnosticParallelBuffers
impl !Send for AgnosticParallelBuffers
impl !Sync for AgnosticParallelBuffers
impl Unpin for AgnosticParallelBuffers
impl !UnwindSafe for AgnosticParallelBuffers
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,