pub struct ServerResponse {
pub id: u32,
pub data: Vec<u8>,
}Expand description
Describes a response sent from server to client.
Fields§
§id: u32Unique identifier matching the request.
data: Vec<u8>The raw response data.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ServerResponse
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ServerResponse
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<__Context> Decode<__Context> for ServerResponse
impl<__Context> Decode<__Context> for ServerResponse
Auto Trait Implementations§
impl Freeze for ServerResponse
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnsafeUnpin for ServerResponse
impl UnwindSafe for ServerResponse
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