pub struct StaticContext<N: Node, F, G, H>where
F: FnMut(&str) -> Result<(), Error>,
G: FnMut(&str) -> Result<N, Error>,
H: FnMut(&Url) -> Result<String, Error>,{ /* private fields */ }
Expand description
The static context. This is not cloneable, since it includes the storage of a closure. The main feature of the static context is the ability to set up a callback for messages. See StaticContextBuilder for details.
Implementations§
Auto Trait Implementations§
impl<N, F, G, H> Freeze for StaticContext<N, F, G, H>
impl<N, F, G, H> RefUnwindSafe for StaticContext<N, F, G, H>
impl<N, F, G, H> Send for StaticContext<N, F, G, H>
impl<N, F, G, H> Sync for StaticContext<N, F, G, H>
impl<N, F, G, H> Unpin for StaticContext<N, F, G, H>
impl<N, F, G, H> UnwindSafe for StaticContext<N, F, G, H>
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