pub struct CalculatorAddRequest {
pub a: i32,
pub b: i32,
}
Fields§
§a: i32
§b: i32
Trait Implementations§
Source§impl Clone for CalculatorAddRequest
impl Clone for CalculatorAddRequest
Source§fn clone(&self) -> CalculatorAddRequest
fn clone(&self) -> CalculatorAddRequest
Returns a copy 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 CalculatorAddRequest
impl Debug for CalculatorAddRequest
Source§impl Encodable for CalculatorAddRequest
impl Encodable for CalculatorAddRequest
Source§type Encoded<'buf> = WireCalculatorAddRequest
type Encoded<'buf> = WireCalculatorAddRequest
The wire type for the value.
Source§impl EncodableOption for Box<CalculatorAddRequest>
impl EncodableOption for Box<CalculatorAddRequest>
Source§type EncodedOption<'buf> = WireBox<'buf, WireCalculatorAddRequest>
type EncodedOption<'buf> = WireBox<'buf, WireCalculatorAddRequest>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for CalculatorAddRequest
impl<___E> Encode<___E> for CalculatorAddRequest
Source§impl<___E> EncodeOption<___E> for Box<CalculatorAddRequest>
impl<___E> EncodeOption<___E> for Box<CalculatorAddRequest>
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
slot: Slot<'_, Self::EncodedOption<'_>>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, slot: Slot<'_, Self::EncodedOption<'_>>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and slot.
Source§impl TakeFrom<WireCalculatorAddRequest> for CalculatorAddRequest
impl TakeFrom<WireCalculatorAddRequest> for CalculatorAddRequest
Source§fn take_from(from: &mut WireCalculatorAddRequest) -> Self
fn take_from(from: &mut WireCalculatorAddRequest) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Auto Trait Implementations§
impl Freeze for CalculatorAddRequest
impl RefUnwindSafe for CalculatorAddRequest
impl Send for CalculatorAddRequest
impl Sync for CalculatorAddRequest
impl Unpin for CalculatorAddRequest
impl UnwindSafe for CalculatorAddRequest
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)