[−][src]Struct caminos_lib::policies::OccupancyFunction
Transform (l,q) into new label al+bq+clq+d where l is the label and q is the occupancy.
Implementations
impl OccupancyFunction
[src]
pub fn new(arg: VCPolicyBuilderArgument<'_>) -> OccupancyFunction
[src]
Trait Implementations
impl Debug for OccupancyFunction
[src]
impl VirtualChannelPolicy for OccupancyFunction
[src]
pub fn filter(
&self,
candidates: Vec<CandidateEgress>,
router: &dyn Router,
info: &RequestInfo<'_>,
topology: &dyn Topology,
_rng: &RefCell<StdRng>
) -> Vec<CandidateEgress>
[src]
&self,
candidates: Vec<CandidateEgress>,
router: &dyn Router,
info: &RequestInfo<'_>,
topology: &dyn Topology,
_rng: &RefCell<StdRng>
) -> Vec<CandidateEgress>
pub fn need_server_ports(&self) -> bool
[src]
pub fn need_port_average_queue_length(&self) -> bool
[src]
pub fn need_port_last_transmission(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for OccupancyFunction
impl Send for OccupancyFunction
impl Sync for OccupancyFunction
impl Unpin for OccupancyFunction
impl UnwindSafe for OccupancyFunction
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>,