pub struct Shell<'a> { /* private fields */ }
Implementations§
source§impl<'a> Shell<'a>
impl<'a> Shell<'a>
pub fn new( config: &'a Config, db: Database, blobs: BlobStorage, psl: PslReader, library: Library<'a>, keyring: KeyRing ) -> Result<Shell<'a>>
pub fn take_module(&mut self) -> Option<Module>
pub fn set_module(&mut self, module: Module)
pub fn module(&self) -> Option<&Module>
pub fn workspace(&self) -> &str
pub fn options_mut(&mut self) -> Option<&mut HashMap<String, String>>
pub fn set_target(&mut self, target: Option<Filter>)
pub fn target(&self) -> &Option<Filter>
pub fn scoped_targets(&self) -> Filter
pub fn db(&self) -> &Database
pub fn db_mut(&mut self) -> &mut Database
pub fn set_db(&mut self, db: Database)
pub fn blobs(&self) -> &BlobStorage
pub fn set_blobstorage(&mut self, blobs: BlobStorage)
pub fn psl(&mut self) -> Result<&Arc<Psl>>
pub fn config(&self) -> &Config
pub fn library(&self) -> &Library<'_>
pub fn library_mut(&mut self) -> &mut Library<'a>
pub fn keyring(&self) -> &KeyRing
pub fn keyring_mut(&mut self) -> &mut KeyRing
pub fn readline(&mut self) -> Option<(Command, Vec<String>)>
pub fn reload_modules(&mut self) -> Result<()>
pub fn reload_module_cache(&mut self)
pub fn reload_keyring_cache(&mut self)
pub fn load_history(&mut self) -> Result<()>
pub fn save_history(&mut self) -> Result<()>
pub fn set_signal_handler(&self) -> Result<()>
pub fn signal_register(&self) -> &Arc<SignalRegister>
pub fn store_blob(&self, tx: VoidSender, blob: &Blob)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Shell<'a>
impl<'a> Send for Shell<'a>
impl<'a> !Sync for Shell<'a>
impl<'a> Unpin for Shell<'a>
impl<'a> !UnwindSafe for Shell<'a>
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more