pub struct WithPath<T> { /* private fields */ }Implementations§
Source§impl WithPath<Config>
impl WithPath<Config>
pub fn get_rust_program_list(&self) -> Result<Vec<PathBuf>>
pub fn read_all_programs(&self) -> Result<Vec<Program>>
Sourcepub fn get_programs(&self, name: Option<String>) -> Result<Vec<Program>>
pub fn get_programs(&self, name: Option<String>) -> Result<Vec<Program>>
Read and get all the programs from the workspace.
This method will only return the given program if name exists.
Sourcepub fn get_program(&self, name: &str) -> Result<Program>
pub fn get_program(&self, name: &str) -> Result<Program>
Get the specified program from the workspace.
pub fn canonicalize_workspace(&self) -> Result<(Vec<PathBuf>, Vec<PathBuf>)>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WithPath<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithPath<T>where
T: RefUnwindSafe,
impl<T> Send for WithPath<T>where
T: Send,
impl<T> Sync for WithPath<T>where
T: Sync,
impl<T> Unpin for WithPath<T>where
T: Unpin,
impl<T> UnwindSafe for WithPath<T>where
T: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'info, T> Lamports<'info> for Twhere
T: AsRef<AccountInfo<'info>>,
impl<'info, T> Lamports<'info> for Twhere
T: AsRef<AccountInfo<'info>>,
Source§impl<Container> Signer for Container
impl<Container> Signer for Container
Source§fn pubkey(&self) -> Pubkey
fn pubkey(&self) -> Pubkey
Infallibly gets the implementor’s public key. Returns the all-zeros
Pubkey if the implementor has none.Source§fn try_pubkey(&self) -> Result<Pubkey, SignerError>
fn try_pubkey(&self) -> Result<Pubkey, SignerError>
Fallibly gets the implementor’s public key
Source§fn sign_message(&self, message: &[u8]) -> Signature
fn sign_message(&self, message: &[u8]) -> Signature
Infallibly produces an Ed25519 signature over the provided
message
bytes. Returns the all-zeros Signature if signing is not possible.Source§fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
Fallibly produces an Ed25519 signature over the provided
message bytes.Source§fn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Whether the implementation requires user interaction to sign