pub struct NetConfig<C: Into<NodeConfig>, F: FnOnce(Context) -> CallbackResult> {
pub nodes: Vec<C>,
pub main: F,
}Expand description
Network configuration.
This includes the main function that is executed on each node
and configuration of all the nodes.
Fields§
§nodes: Vec<C>Nodes’ configurations.
main: FClosure that is run on each node.
Auto Trait Implementations§
impl<C, F> Freeze for NetConfig<C, F>where
F: Freeze,
impl<C, F> RefUnwindSafe for NetConfig<C, F>where
F: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, F> Send for NetConfig<C, F>
impl<C, F> Sync for NetConfig<C, F>
impl<C, F> Unpin for NetConfig<C, F>
impl<C, F> UnwindSafe for NetConfig<C, F>where
F: UnwindSafe,
C: UnwindSafe,
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