pub struct SegmentReadCommand {
pub segment: String,
pub offset: i64,
pub at_tail: bool,
pub end_of_segment: bool,
pub data: Vec<u8>,
pub request_id: i64,
}
Expand description
- SegmentRead Command
Fields§
§segment: String
§offset: i64
§at_tail: bool
§end_of_segment: bool
§data: Vec<u8>
§request_id: i64
Trait Implementations§
Source§impl Clone for SegmentReadCommand
impl Clone for SegmentReadCommand
Source§fn clone(&self) -> SegmentReadCommand
fn clone(&self) -> SegmentReadCommand
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 Command for SegmentReadCommand
impl Command for SegmentReadCommand
Source§impl Debug for SegmentReadCommand
impl Debug for SegmentReadCommand
Source§impl<'de> Deserialize<'de> for SegmentReadCommand
impl<'de> Deserialize<'de> for SegmentReadCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SegmentReadCommand
impl PartialEq for SegmentReadCommand
Source§impl Reply for SegmentReadCommand
impl Reply for SegmentReadCommand
fn get_request_id(&self) -> i64
fn is_failure(&self) -> bool
Source§impl Serialize for SegmentReadCommand
impl Serialize for SegmentReadCommand
impl StructuralPartialEq for SegmentReadCommand
Auto Trait Implementations§
impl Freeze for SegmentReadCommand
impl RefUnwindSafe for SegmentReadCommand
impl Send for SegmentReadCommand
impl Sync for SegmentReadCommand
impl Unpin for SegmentReadCommand
impl UnwindSafe for SegmentReadCommand
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