pub enum Message {
RequestRange {
range: (Point, Point),
},
ClientDone,
StartBatch,
NoBlocks,
Block {
body: Vec<u8>,
},
BatchDone,
}
Variants§
Trait Implementations§
Source§impl DecodePayload for Message
impl DecodePayload for Message
fn decode_payload(d: &mut PayloadDecoder<'_>) -> Result<Self, Box<dyn Error>>
Source§impl EncodePayload for Message
impl EncodePayload for Message
fn encode_payload( &self, e: &mut PayloadEncoder<'_>, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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