pub enum MessageResponse {
FileDescriptorResponse(Box<FileDescriptorResponse>),
AllExtensionNumbersResponse(Box<ExtensionNumberResponse>),
ListServicesResponse(Box<ListServiceResponse>),
ErrorResponse(Box<ErrorResponse>),
}Expand description
The server set one of the following fields according to the message_request in the request.
Variants§
FileDescriptorResponse(Box<FileDescriptorResponse>)
AllExtensionNumbersResponse(Box<ExtensionNumberResponse>)
ListServicesResponse(Box<ListServiceResponse>)
ErrorResponse(Box<ErrorResponse>)
Trait Implementations§
Source§impl Clone for MessageResponse
impl Clone for MessageResponse
Source§fn clone(&self) -> MessageResponse
fn clone(&self) -> MessageResponse
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 Debug for MessageResponse
impl Debug for MessageResponse
Source§impl From<ErrorResponse> for MessageResponse
impl From<ErrorResponse> for MessageResponse
Source§fn from(v: ErrorResponse) -> Self
fn from(v: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<ExtensionNumberResponse> for MessageResponse
impl From<ExtensionNumberResponse> for MessageResponse
Source§fn from(v: ExtensionNumberResponse) -> Self
fn from(v: ExtensionNumberResponse) -> Self
Converts to this type from the input type.
Source§impl From<FileDescriptorResponse> for MessageResponse
impl From<FileDescriptorResponse> for MessageResponse
Source§fn from(v: FileDescriptorResponse) -> Self
fn from(v: FileDescriptorResponse) -> Self
Converts to this type from the input type.
Source§impl From<ListServiceResponse> for MessageResponse
impl From<ListServiceResponse> for MessageResponse
Source§fn from(v: ListServiceResponse) -> Self
fn from(v: ListServiceResponse) -> Self
Converts to this type from the input type.
impl Oneof for MessageResponse
Source§impl PartialEq for MessageResponse
impl PartialEq for MessageResponse
Source§fn eq(&self, other: &MessageResponse) -> bool
fn eq(&self, other: &MessageResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageResponse
impl Serialize for MessageResponse
impl StructuralPartialEq for MessageResponse
Auto Trait Implementations§
impl Freeze for MessageResponse
impl RefUnwindSafe for MessageResponse
impl Send for MessageResponse
impl Sync for MessageResponse
impl Unpin for MessageResponse
impl UnsafeUnpin for MessageResponse
impl UnwindSafe for MessageResponse
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