pub struct Session { /* private fields */ }
Expand description
An interactive compiler session
Implementations§
Source§impl Session
impl Session
Sourcepub fn new(menu: &'static Menu, network: Network) -> Session
pub fn new(menu: &'static Menu, network: Network) -> Session
create an instance of a session with a fixed menu and a given network
Sourcepub fn get_context(&self) -> Context
pub fn get_context(&self) -> Context
get a context for this session TODO: link to a bitcoin node or something to determine available funds TODO: use an emulator if desired?
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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