Enum wampire::InvocationPolicy
source · [−]pub enum InvocationPolicy {
Single,
RoundRobin,
Random,
First,
Last,
}
Expand description
The policies that dictate how invocations are distributed amongst shared registrations
Variants
Single
Only one reigistration per uri (the default)
RoundRobin
Callee selcted sequentially from the list of registrants
Random
Callee selcted randomly from the list of registrants
First
First callee (in orer of registration) is called
Last
Last callee (in order of registration( is called
Trait Implementations
sourceimpl Clone for InvocationPolicy
impl Clone for InvocationPolicy
sourcefn clone(&self) -> InvocationPolicy
fn clone(&self) -> InvocationPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InvocationPolicy
impl Debug for InvocationPolicy
sourceimpl Default for InvocationPolicy
impl Default for InvocationPolicy
sourcefn default() -> InvocationPolicy
fn default() -> InvocationPolicy
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InvocationPolicy
impl<'de> Deserialize<'de> for InvocationPolicy
sourcefn deserialize<D>(deserializer: D) -> Result<InvocationPolicy, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<InvocationPolicy, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<InvocationPolicy> for InvocationPolicy
impl PartialEq<InvocationPolicy> for InvocationPolicy
sourceimpl Serialize for InvocationPolicy
impl Serialize for InvocationPolicy
impl Copy for InvocationPolicy
impl StructuralPartialEq for InvocationPolicy
Auto Trait Implementations
impl RefUnwindSafe for InvocationPolicy
impl Send for InvocationPolicy
impl Sync for InvocationPolicy
impl Unpin for InvocationPolicy
impl UnwindSafe for InvocationPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more