[][src]Struct caminos_lib::router::RouterBuilderArgument

#[non_exhaustive]pub struct RouterBuilderArgument<'a> {
    pub router_index: usize,
    pub cv: &'a ConfigurationValue,
    pub plugs: &'a Plugs,
    pub topology: &'a dyn Topology,
    pub maximum_packet_size: usize,
}

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
router_index: usize

The index of the router being created

cv: &'a ConfigurationValue

A ConfigurationValue::Object defining the router.

plugs: &'a Plugs

The user defined plugs. In case the router needs to create elements.

topology: &'a dyn Topology

The topology of which the router is gonna be part.

maximum_packet_size: usize

The maximum number of phits that packet gonna have.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for RouterBuilderArgument<'a>

impl<'a> !Send for RouterBuilderArgument<'a>

impl<'a> !Sync for RouterBuilderArgument<'a>

impl<'a> Unpin for RouterBuilderArgument<'a>

impl<'a> !UnwindSafe for RouterBuilderArgument<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.