Struct gen_lsp_server::RawResponse [−][src]
pub struct RawResponse { pub id: u64, pub result: Option<Value>, pub error: Option<RawResponseError>, }
Fields
id: u64
result: Option<Value>
error: Option<RawResponseError>
Methods
impl RawResponse
[src]
impl RawResponse
pub fn ok<R>(id: u64, result: &R::Result) -> RawResponse where
R: Request,
R::Result: Serialize,
[src]
pub fn ok<R>(id: u64, result: &R::Result) -> RawResponse where
R: Request,
R::Result: Serialize,
pub fn err(id: u64, code: i32, message: String) -> RawResponse
[src]
pub fn err(id: u64, code: i32, message: String) -> RawResponse
Trait Implementations
impl Debug for RawResponse
[src]
impl Debug for RawResponse
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for RawResponse
[src]
impl Clone for RawResponse
fn clone(&self) -> RawResponse
[src]
fn clone(&self) -> RawResponse
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for RawResponse
impl Send for RawResponse
impl Sync for RawResponse
impl Sync for RawResponse