pub enum Request {
ListMacros {
dylib_path: Utf8PathBuf,
},
ExpandMacro(Box<ExpandMacro>),
ApiVersionCheck {},
SetConfig(ServerConfig),
}
Expand description
Represents requests sent from the client to the proc-macro-srv.
Variants§
ListMacros
Retrieves a list of macros from a given dynamic library.
Since NO_VERSION_CHECK_VERSION
Fields
§
dylib_path: Utf8PathBuf
ExpandMacro(Box<ExpandMacro>)
Expands a procedural macro.
Since NO_VERSION_CHECK_VERSION
ApiVersionCheck
Performs an API version check between the client and the server.
Since VERSION_CHECK_VERSION
SetConfig(ServerConfig)
Sets server-specific configurations.
Since RUST_ANALYZER_SPAN_SUPPORT
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Request
impl Message for Request
fn read<R: BufRead>( from_proto: for<'i, 'buf> fn(inp: &'i mut R, buf: &'buf mut String) -> Result<Option<&'buf String>>, inp: &mut R, buf: &mut String, ) -> Result<Option<Self>>
fn write<W: Write>( self, to_proto: for<'o, 'msg> fn(out: &'o mut W, msg: &'msg str) -> Result<()>, out: &mut W, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more