pub enum RouteResult {
Matched(String, String, Arc<dyn RefractiumProtocol>),
Fallback(String),
Discarded,
}Expand description
Result of a routing attempt.
Variants§
Matched(String, String, Arc<dyn RefractiumProtocol>)
A matching protocol was found and routed to a backend.
Fallback(String)
No matching protocol was found, but traffic was routed to the fallback.
Discarded
Protocol was identified but no route or healthy fallback is available.
Trait Implementations§
Source§impl Clone for RouteResult
impl Clone for RouteResult
Source§fn clone(&self) -> RouteResult
fn clone(&self) -> RouteResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteResult
impl !RefUnwindSafe for RouteResult
impl Send for RouteResult
impl Sync for RouteResult
impl Unpin for RouteResult
impl UnsafeUnpin for RouteResult
impl !UnwindSafe for RouteResult
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