pub struct MemoryResponse {
pub results: Vec<MemoryResult>,
}Expand description
Response from memory request.
Fields§
§results: Vec<MemoryResult>Results from each node.
Implementations§
Source§impl MemoryResponse
impl MemoryResponse
Sourcepub fn first(&self) -> Option<&MemoryResult>
pub fn first(&self) -> Option<&MemoryResult>
Get the first result.
Trait Implementations§
Source§impl Clone for MemoryResponse
impl Clone for MemoryResponse
Source§fn clone(&self) -> MemoryResponse
fn clone(&self) -> MemoryResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryResponse
impl Debug for MemoryResponse
Source§impl From<MemoryResponse> for MemoryResponse
impl From<MemoryResponse> for MemoryResponse
Source§fn from(proto: ProtoMemoryResponse) -> Self
fn from(proto: ProtoMemoryResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemoryResponse
impl RefUnwindSafe for MemoryResponse
impl Send for MemoryResponse
impl Sync for MemoryResponse
impl Unpin for MemoryResponse
impl UnwindSafe for MemoryResponse
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§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