Struct tower_lsp::jsonrpc::RequestBuilder
source · [−]pub struct RequestBuilder { /* private fields */ }
Expand description
A builder to construct the properties of a Request
.
To construct a RequestBuilder
, refer to Request::build
.
Implementations
sourceimpl RequestBuilder
impl RequestBuilder
sourcepub fn id<I: Into<Id>>(self, id: I) -> Self
pub fn id<I: Into<Id>>(self, id: I) -> Self
Sets the id
member of the request to the given value.
If this method is not called, the resulting Request
will be assumed to be a notification.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more