pub struct DispatchNode(/* private fields */);Expand description
A reference-counted MMIO handler node used in dispatch trees.
Implementations§
Source§impl DispatchNode
impl DispatchNode
Sourcepub fn new(handler: Arc<dyn DispatchHandler>) -> Self
pub fn new(handler: Arc<dyn DispatchHandler>) -> Self
Creates a new [Node] wrapping handler.
Sourcepub fn into_handler(self) -> DispatchNodeHandler
pub fn into_handler(self) -> DispatchNodeHandler
Takes this DispatchNode and returns a type that implements
DispatchHandler.
This is useful to reuse DispatchNodes with other inject combinators.
Trait Implementations§
Source§impl Clone for DispatchNode
impl Clone for DispatchNode
Source§impl<T: DispatchHandler> From<T> for DispatchNode
impl<T: DispatchHandler> From<T> for DispatchNode
Auto Trait Implementations§
impl !RefUnwindSafe for DispatchNode
impl !UnwindSafe for DispatchNode
impl Freeze for DispatchNode
impl Send for DispatchNode
impl Sync for DispatchNode
impl Unpin for DispatchNode
impl UnsafeUnpin for DispatchNode
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