Struct scabbard::protos::scabbard::ScabbardMessage [−][src]
pub struct ScabbardMessage { pub message_type: ScabbardMessage_Type, pub consensus_message: Vec<u8>, pub proposed_batch: SingularPtrField<ProposedBatch>, pub new_batch: Vec<u8>, pub unknown_fields: UnknownFields, pub cached_size: CachedSize, }
Generated files are compatible only with the same version of protobuf runtime.
Fields
message_type: ScabbardMessage_Type
consensus_message: Vec<u8>
proposed_batch: SingularPtrField<ProposedBatch>
new_batch: Vec<u8>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl ScabbardMessage
[src]
impl ScabbardMessage
[src]pub fn new() -> ScabbardMessage
[src]
pub fn get_message_type(&self) -> ScabbardMessage_Type
[src]
pub fn clear_message_type(&mut self)
[src]
pub fn set_message_type(&mut self, v: ScabbardMessage_Type)
[src]
pub fn get_consensus_message(&self) -> &[u8]
[src]
pub fn clear_consensus_message(&mut self)
[src]
pub fn set_consensus_message(&mut self, v: Vec<u8>)
[src]
pub fn mut_consensus_message(&mut self) -> &mut Vec<u8>
[src]
pub fn take_consensus_message(&mut self) -> Vec<u8>
[src]
pub fn get_proposed_batch(&self) -> &ProposedBatch
[src]
pub fn clear_proposed_batch(&mut self)
[src]
pub fn has_proposed_batch(&self) -> bool
[src]
pub fn set_proposed_batch(&mut self, v: ProposedBatch)
[src]
pub fn mut_proposed_batch(&mut self) -> &mut ProposedBatch
[src]
pub fn take_proposed_batch(&mut self) -> ProposedBatch
[src]
pub fn get_new_batch(&self) -> &[u8]
[src]
pub fn clear_new_batch(&mut self)
[src]
pub fn set_new_batch(&mut self, v: Vec<u8>)
[src]
pub fn mut_new_batch(&mut self) -> &mut Vec<u8>
[src]
pub fn take_new_batch(&mut self) -> Vec<u8>
[src]
Trait Implementations
impl Clear for ScabbardMessage
[src]
impl Clear for ScabbardMessage
[src]impl Clone for ScabbardMessage
[src]
impl Clone for ScabbardMessage
[src]fn clone(&self) -> ScabbardMessage
[src]
fn clone(&self) -> ScabbardMessage
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ScabbardMessage
[src]
impl Debug for ScabbardMessage
[src]impl Default for ScabbardMessage
[src]
impl Default for ScabbardMessage
[src]fn default() -> ScabbardMessage
[src]
fn default() -> ScabbardMessage
[src]Returns the “default value” for a type. Read more
impl<'a> Default for &'a ScabbardMessage
[src]
impl<'a> Default for &'a ScabbardMessage
[src]fn default() -> &'a ScabbardMessage
[src]
fn default() -> &'a ScabbardMessage
[src]Returns the “default value” for a type. Read more
impl Message for ScabbardMessage
[src]
impl Message for ScabbardMessage
[src]fn is_initialized(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]True iff all required fields are initialized.
Always returns true
for protobuf 3. Read more
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]Update this message object with fields read from given stream.
fn compute_size(&self) -> u32
[src]
fn compute_size(&self) -> u32
[src]Compute and cache size of this message and all nested messages
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]Write message to the stream. Read more
fn get_cached_size(&self) -> u32
[src]
fn get_cached_size(&self) -> u32
[src]Get size previously computed by compute_size
.
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]Get a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]Get a mutable reference to unknown fields.
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]View self as mutable Any
.
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]Message descriptor for this message, used for reflection.
fn new() -> ScabbardMessage
[src]
fn new() -> ScabbardMessage
[src]Create an empty message object. Read more
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn descriptor_static() -> &'static MessageDescriptor
[src]Get message descriptor for message type. Read more
fn default_instance() -> &'static ScabbardMessage
[src]
fn default_instance() -> &'static ScabbardMessage
[src]Return a pointer to default immutable message with static lifetime. Read more
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
[src]
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
[src]Parse message from stream.
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
[src]
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
[src]Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]Update this message object with fields read from given stream.
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
[src]
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
[src]Parse message from reader. Parse stops on EOF or when error encountered. Read more
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
[src]
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
[src]Parse message from byte array.
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]Write the message to bytes vec.
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]Write the message to bytes vec.
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
impl PartialEq<ScabbardMessage> for ScabbardMessage
[src]
impl PartialEq<ScabbardMessage> for ScabbardMessage
[src]fn eq(&self, other: &ScabbardMessage) -> bool
[src]
fn eq(&self, other: &ScabbardMessage) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ScabbardMessage) -> bool
[src]
fn ne(&self, other: &ScabbardMessage) -> bool
[src]This method tests for !=
.
impl ProtobufValue for ScabbardMessage
[src]
impl ProtobufValue for ScabbardMessage
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
fn as_ref(&self) -> ReflectValueRef<'_>
[src]As ref
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
[src]Is value non-zero?
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]Return ProtobufValueRef
if self is Copy
. Read more
impl StructuralPartialEq for ScabbardMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScabbardMessage
impl Send for ScabbardMessage
impl Sync for ScabbardMessage
impl Unpin for ScabbardMessage
impl UnwindSafe for ScabbardMessage
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<M> FromMessageBytes for M where
M: Message,
[src]
impl<M> FromMessageBytes for M where
M: Message,
[src]pub fn from_message_bytes(message_bytes: &[u8]) -> Result<M, DispatchError>
[src]
pub fn from_message_bytes(message_bytes: &[u8]) -> Result<M, DispatchError>
[src]Converts the given bytes into the target type Read more
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]pub fn into_bytes(Self) -> Result<Vec<u8, Global>, ProtoConversionError>
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]pub fn into_bytes(self) -> Result<Vec<u8, Global>, ProtoConversionError>
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]pub fn into_native(Self) -> Result<N, ProtoConversionError>
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]pub fn into_native(self) -> Result<N, ProtoConversionError>
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]pub fn into_proto(Self) -> Result<P, ProtoConversionError>
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]pub fn into_proto(self) -> Result<P, ProtoConversionError>
[src]
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,