pub struct Init<CS: Subcommand, S: Args> {
pub args: Args<CS, S>,
pub graph: Mutex<KeychainTxGraph>,
pub chain: Mutex<LocalChain>,
pub db: Mutex<Store<ChangeSet>>,
pub network: Network,
}
Expand description
The initial state returned by init_or_load
.
Fields§
§args: Args<CS, S>
CLI args
graph: Mutex<KeychainTxGraph>
Indexed graph
chain: Mutex<LocalChain>
Local chain
db: Mutex<Store<ChangeSet>>
Database
network: Network
Network
Auto Trait Implementations§
impl<CS, S> !Freeze for Init<CS, S>
impl<CS, S> RefUnwindSafe for Init<CS, S>where
CS: RefUnwindSafe,
S: RefUnwindSafe,
impl<CS, S> Send for Init<CS, S>
impl<CS, S> Sync for Init<CS, S>
impl<CS, S> Unpin for Init<CS, S>
impl<CS, S> UnwindSafe for Init<CS, S>where
CS: UnwindSafe,
S: 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