pub struct WorkspaceInstructionProvider { /* private fields */ }Expand description
Provider over caller-supplied workspace instruction snapshots.
Implementations§
Source§impl WorkspaceInstructionProvider
impl WorkspaceInstructionProvider
Sourcepub fn new(
instructions: Vec<WorkspaceInstruction>,
) -> Result<Self, ContextError>
pub fn new( instructions: Vec<WorkspaceInstruction>, ) -> Result<Self, ContextError>
Creates a canonical instruction provider.
§Errors
Returns an error for too many or duplicate instruction identities.
Trait Implementations§
Source§impl Clone for WorkspaceInstructionProvider
impl Clone for WorkspaceInstructionProvider
Source§fn clone(&self) -> WorkspaceInstructionProvider
fn clone(&self) -> WorkspaceInstructionProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContextProvider for WorkspaceInstructionProvider
impl ContextProvider for WorkspaceInstructionProvider
Source§fn id(&self) -> &ContextProviderId
fn id(&self) -> &ContextProviderId
Returns stable provider identity.
Source§fn provide(&self, _request: ContextRequest) -> ContextProviderFuture<'_>
fn provide(&self, _request: ContextRequest) -> ContextProviderFuture<'_>
Produces bounded modules from one immutable request.
Auto Trait Implementations§
impl Freeze for WorkspaceInstructionProvider
impl RefUnwindSafe for WorkspaceInstructionProvider
impl Send for WorkspaceInstructionProvider
impl Sync for WorkspaceInstructionProvider
impl Unpin for WorkspaceInstructionProvider
impl UnsafeUnpin for WorkspaceInstructionProvider
impl UnwindSafe for WorkspaceInstructionProvider
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