Struct eventstore_tcp::raw::client_messages::TransactionCommitCompleted
[−]
[src]
pub struct TransactionCommitCompleted<'a> { pub transaction_id: i64, pub result: Option<OperationResult>, pub message: Option<Cow<'a, str>>, pub first_event_number: i32, pub last_event_number: i32, pub prepare_position: Option<i64>, pub commit_position: Option<i64>, }
Fields
transaction_id: i64
result: Option<OperationResult>
message: Option<Cow<'a, str>>
first_event_number: i32
last_event_number: i32
prepare_position: Option<i64>
commit_position: Option<i64>
Methods
impl<'a> TransactionCommitCompleted<'a>
[src]
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Trait Implementations
impl<'a> Debug for TransactionCommitCompleted<'a>
[src]
impl<'a> Default for TransactionCommitCompleted<'a>
[src]
fn default() -> TransactionCommitCompleted<'a>
Returns the "default value" for a type. Read more
impl<'a> PartialEq for TransactionCommitCompleted<'a>
[src]
fn eq(&self, __arg_0: &TransactionCommitCompleted<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TransactionCommitCompleted<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for TransactionCommitCompleted<'a>
[src]
fn clone(&self) -> TransactionCommitCompleted<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> MessageWrite for TransactionCommitCompleted<'a>
[src]
fn get_size(&self) -> usize
Computes necessary binary size of self once serialized in protobuf
fn write_message<W: Write>(&self, w: &mut Writer<W>) -> Result<()>
Writes Self
into W writer
fn write_file<P>(&self, p: P) -> Result<(), Error> where P: AsRef<Path>
Writes self into a file