pub struct RouteDestination { /* private fields */ }Expand description
Route destination.
Implementations§
Source§impl RouteDestination
impl RouteDestination
Sourcepub fn new(
name: impl Into<String>,
description: impl Into<String>,
chain: Arc<dyn BaseChain>,
) -> Self
pub fn new( name: impl Into<String>, description: impl Into<String>, chain: Arc<dyn BaseChain>, ) -> Self
Create a new route destination.
Sourcepub fn with_keywords(self, keywords: Vec<&str>) -> Self
pub fn with_keywords(self, keywords: Vec<&str>) -> Self
Set the keyword list used for keyword-based routing.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Get the destination description.
Auto Trait Implementations§
impl !RefUnwindSafe for RouteDestination
impl !UnwindSafe for RouteDestination
impl Freeze for RouteDestination
impl Send for RouteDestination
impl Sync for RouteDestination
impl Unpin for RouteDestination
impl UnsafeUnpin for RouteDestination
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