pub struct CloudProtoPacket {
pub magic: CloudProtoMagic,
pub kind: u8,
pub version: CloudProtoVersion,
pub payload: Vec<u8>,
}Expand description
The common framing packet structure of the protocol
Fields§
§magic: CloudProtoMagicOne magic value corresponds to one backend service
kind: u8Each value can have a different interpretation for each backend service There is no common definition of packet kind at the framing level
version: CloudProtoVersion§payload: Vec<u8>Trait Implementations§
Source§impl Clone for CloudProtoPacket
impl Clone for CloudProtoPacket
Source§fn clone(&self) -> CloudProtoPacket
fn clone(&self) -> CloudProtoPacket
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 CloudProtoPacket
impl Debug for CloudProtoPacket
Source§impl PartialEq for CloudProtoPacket
impl PartialEq for CloudProtoPacket
Source§impl<IO> Sink<CloudProtoPacket> for CloudProtoSocket<IO>where
IO: AsyncRead + AsyncWrite,
impl<IO> Sink<CloudProtoPacket> for CloudProtoSocket<IO>where
IO: AsyncRead + AsyncWrite,
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
pkt: CloudProtoPacket,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, pkt: CloudProtoPacket, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl TryFrom<CloudProtoPacket> for LfoResponse
impl TryFrom<CloudProtoPacket> for LfoResponse
impl Eq for CloudProtoPacket
impl StructuralPartialEq for CloudProtoPacket
Auto Trait Implementations§
impl Freeze for CloudProtoPacket
impl RefUnwindSafe for CloudProtoPacket
impl Send for CloudProtoPacket
impl Sync for CloudProtoPacket
impl Unpin for CloudProtoPacket
impl UnwindSafe for CloudProtoPacket
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