Struct exonum::messages::MessageWriter
[−]
[src]
pub struct MessageWriter { /* fields omitted */ }
Message writer.
Methods
impl MessageWriter
[src]
fn new(
protocol_version: u8,
network_id: u8,
service_id: u16,
message_type: u16,
payload_length: usize
) -> Self
[src]
protocol_version: u8,
network_id: u8,
service_id: u16,
message_type: u16,
payload_length: usize
) -> Self
Creates a MessageWriter
instance with given parameters.
fn write<'a, F: Field<'a>>(&'a mut self, field: F, from: Offset, to: Offset)
[src]
Writes given field to the given offset.
fn sign(self, secret_key: &SecretKey) -> MessageBuffer
[src]
Signs the message with the given secret key.
fn append_signature(self, signature: &Signature) -> MessageBuffer
[src]
Appends the given signature to the message.
Trait Implementations
impl Debug for MessageWriter
[src]
impl PartialEq for MessageWriter
[src]
fn eq(&self, __arg_0: &MessageWriter) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MessageWriter) -> bool
[src]
This method tests for !=
.