pub struct ActionResponse {
pub id: u64,
pub output: Cbor,
}Expand description
BARE struct ActionResponse.
Fields§
§id: u64§output: CborTrait Implementations§
Source§impl Clone for ActionResponse
impl Clone for ActionResponse
Source§impl Debug for ActionResponse
impl Debug for ActionResponse
Source§impl Encode for ActionResponse
impl Encode for ActionResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
The exact encoded length, computed without encoding.
fn encode<S: Sink>(&self, out: &mut S)
fn encode_to_vec(&self) -> Vec<u8> ⓘ
fn encode_to_bytes(&self) -> Bytes
Source§fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
Encodes into the front of
out and returns the number of bytes written. Checks the length
first instead of panicking when out is too short.impl Eq for ActionResponse
Source§impl Hash for ActionResponse
impl Hash for ActionResponse
Source§impl Message for ActionResponse
impl Message for ActionResponse
Source§type Wire = ActionResponseWire
type Wire = ActionResponseWire
The wire marker whose owned form is this type.
Source§fn view(bytes: Bytes) -> Result<View<Self::Wire>, DecodeError>
fn view(bytes: Bytes) -> Result<View<Self::Wire>, DecodeError>
Verifies
bytes and returns a zero-copy view over them.Source§impl PartialEq for ActionResponse
impl PartialEq for ActionResponse
impl StructuralPartialEq for ActionResponse
Auto Trait Implementations§
impl !Freeze for ActionResponse
impl RefUnwindSafe for ActionResponse
impl Send for ActionResponse
impl Sync for ActionResponse
impl Unpin for ActionResponse
impl UnsafeUnpin for ActionResponse
impl UnwindSafe for ActionResponse
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