pub struct TaskState {
pub name: String,
pub signature: FunctionSignature,
pub arg_names: Vec<String>,
pub requirements: HashSet<Capability>,
pub package_name: String,
pub package_version: Version,
pub range: TextRange,
}
Fields§
§name: String
The name of the function.
signature: FunctionSignature
The signature of the function.
arg_names: Vec<String>
The names of the arguments. They are mapped by virtue of having the same index as in signature.args
.
requirements: HashSet<Capability>
Any requirements for this function.
package_name: String
The name of the package where this Task is stored.
package_version: Version
The version of the package where this Task is stored.
range: TextRange
The range that links this task back to the source text.
Trait Implementations§
source§impl From<&TaskState> for FunctionEntry
impl From<&TaskState> for FunctionEntry
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnwindSafe for TaskState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request