pub struct BlockOpResponseProto {
pub status: i32,
pub first_bad_link: Option<String>,
pub checksum_response: Option<OpBlockChecksumResponseProto>,
pub read_op_checksum_info: Option<ReadOpChecksumInfoProto>,
pub message: Option<String>,
pub short_circuit_access_version: Option<u32>,
}
Fields§
§status: i32
§first_bad_link: Option<String>
§checksum_response: Option<OpBlockChecksumResponseProto>
§read_op_checksum_info: Option<ReadOpChecksumInfoProto>
§message: Option<String>
- explanatory text which may be useful to log on the client side
short_circuit_access_version: Option<u32>
- If the server chooses to agree to the request of a client for short-circuit access, it will send a response message with the relevant file descriptors attached.
In the body of the message, this version number will be set to the specific version number of the block data that the client is about to read.
Implementations§
Source§impl BlockOpResponseProto
impl BlockOpResponseProto
Sourcepub fn status(&self) -> Status
pub fn status(&self) -> Status
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: Status)
pub fn set_status(&mut self, value: Status)
Sets status
to the provided enum value.
Sourcepub fn first_bad_link(&self) -> &str
pub fn first_bad_link(&self) -> &str
Returns the value of first_bad_link
, or the default value if first_bad_link
is unset.
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message
, or the default value if message
is unset.
Sourcepub fn short_circuit_access_version(&self) -> u32
pub fn short_circuit_access_version(&self) -> u32
Returns the value of short_circuit_access_version
, or the default value if short_circuit_access_version
is unset.
Trait Implementations§
Source§impl Clone for BlockOpResponseProto
impl Clone for BlockOpResponseProto
Source§fn clone(&self) -> BlockOpResponseProto
fn clone(&self) -> BlockOpResponseProto
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 BlockOpResponseProto
impl Debug for BlockOpResponseProto
Source§impl Default for BlockOpResponseProto
impl Default for BlockOpResponseProto
Source§impl Message for BlockOpResponseProto
impl Message for BlockOpResponseProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for BlockOpResponseProto
impl PartialEq for BlockOpResponseProto
impl StructuralPartialEq for BlockOpResponseProto
Auto Trait Implementations§
impl Freeze for BlockOpResponseProto
impl RefUnwindSafe for BlockOpResponseProto
impl Send for BlockOpResponseProto
impl Sync for BlockOpResponseProto
impl Unpin for BlockOpResponseProto
impl UnwindSafe for BlockOpResponseProto
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