pub struct Entry {
pub id: &'static str,
pub priority: i8,
pub router: Arc<Box<dyn Router>>,
pub callback: Arc<Callback>,
}Fields§
§id: &'static str§priority: i8§router: Arc<Box<dyn Router>>§callback: Arc<Callback>Implementations§
Source§impl Entry
impl Entry
pub fn get_priority(&self) -> i8
pub fn get_router(&self) -> &dyn Router
pub fn get_handler(&self) -> Arc<Callback>
Trait Implementations§
impl Eq for Entry
Source§impl Ord for Entry
impl Ord for Entry
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Entry
impl !UnwindSafe for Entry
impl Freeze for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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