pub struct SessionRpcInstructions<'a> { /* private fields */ }Expand description
session.instructions.* RPCs.
Implementations§
Source§impl<'a> SessionRpcInstructions<'a>
impl<'a> SessionRpcInstructions<'a>
Sourcepub async fn get_sources(&self) -> Result<InstructionsGetSourcesResult, Error>
pub async fn get_sources(&self) -> Result<InstructionsGetSourcesResult, Error>
Gets instruction sources loaded for the session.
Wire method: session.instructions.getSources.
§Returns
Instruction sources loaded for the session, in merge order.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn reload(&self) -> Result<(), Error>
pub async fn reload(&self) -> Result<(), Error>
Invalidates cached custom-instruction discovery so subsequent turns and source reads observe instruction files currently on disk.
Wire method: session.instructions.reload.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcInstructions<'a>
impl<'a> Clone for SessionRpcInstructions<'a>
impl<'a> Copy for SessionRpcInstructions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SessionRpcInstructions<'a>
impl<'a> !UnwindSafe for SessionRpcInstructions<'a>
impl<'a> Freeze for SessionRpcInstructions<'a>
impl<'a> Send for SessionRpcInstructions<'a>
impl<'a> Sync for SessionRpcInstructions<'a>
impl<'a> Unpin for SessionRpcInstructions<'a>
impl<'a> UnsafeUnpin for SessionRpcInstructions<'a>
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