pub struct Plugs { /* private fields */ }
Implementations§
Source§impl Plugs
impl Plugs
pub fn add_router( &mut self, key: String, builder: fn(RouterBuilderArgument<'_>) -> Rc<RefCell<dyn Router>>, )
pub fn add_topology( &mut self, key: String, builder: fn(TopologyBuilderArgument<'_>) -> Box<dyn Topology>, )
pub fn add_stage( &mut self, key: String, builder: fn(StageBuilderArgument<'_>) -> Box<dyn Stage>, )
pub fn add_traffic( &mut self, key: String, builder: fn(TrafficBuilderArgument<'_>) -> Box<dyn Traffic>, )
pub fn add_routing( &mut self, key: String, builder: fn(RoutingBuilderArgument<'_>) -> Box<dyn Routing>, )
pub fn add_policy( &mut self, key: String, builder: fn(VCPolicyBuilderArgument<'_>) -> Box<dyn VirtualChannelPolicy>, )
pub fn add_pattern( &mut self, key: String, builder: fn(PatternBuilderArgument<'_>) -> Box<dyn Pattern>, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugs
impl RefUnwindSafe for Plugs
impl Send for Plugs
impl Sync for Plugs
impl Unpin for Plugs
impl UnwindSafe for Plugs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more