pub enum ServerMessage {
Show 15 variants
BeginTransaction(ServerTransactionMessage),
SendOperation(ServerTransactionMessage),
ChainedOperations(Vec<ServerTransactionMessage>),
CommitTransaction,
Ping(usize),
Error(NanoServiceError),
RollbackTransaction,
Cleanup,
CloseToNewTrancations,
ClosedToNewTrancations,
SetSavePoint,
RollbackToSavePoint,
ReleaseLastSavePoint,
CloseConnection,
HardCloseConnection,
}
Expand description
The wrapper for different server messages.
§Variants
BeginTransaction
- Begin a transaction creating a new transaction actor and setting the transaction id.SendOperation
- Send a single operation to the transaction actor.ChainedOperations
- Send a list of operations to the transaction actor.CommitTransaction
- Commit the transaction.Ping
- Ping the server.Error
- An error message.RollbackTransaction
- Rollback the transaction.Cleanup
- Cleanup the transaction removing all actors associated with the transaction being cleaned up.CloseToNewTrancations
- Close the server or the connection to new transactions.ClosedToNewTrancations
- Signals that the server or connection is now closed to new transactions.SetSavePoint
- Set a save point for the transaction.RollbackToSavePoint
- Rollback to the last save point.ReleaseLastSavePoint
- Release the last save point (currently does nothing).CloseConnection
- Close the connection of the TCP (this will wait and then rollback any dangling transaction after an allotted time)HardCloseConnection
- Close the connection of the TCP (this will rollback any dangling transaction immediately)
Variants§
BeginTransaction(ServerTransactionMessage)
SendOperation(ServerTransactionMessage)
ChainedOperations(Vec<ServerTransactionMessage>)
CommitTransaction
Ping(usize)
Error(NanoServiceError)
RollbackTransaction
Cleanup
CloseToNewTrancations
ClosedToNewTrancations
SetSavePoint
RollbackToSavePoint
ReleaseLastSavePoint
CloseConnection
HardCloseConnection
Trait Implementations§
source§impl Clone for ServerMessage
impl Clone for ServerMessage
source§fn clone(&self) -> ServerMessage
fn clone(&self) -> ServerMessage
Returns a copy 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 ServerMessage
impl Debug for ServerMessage
source§impl<'de> Deserialize<'de> for ServerMessage
impl<'de> Deserialize<'de> for ServerMessage
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 ServerMessage
impl PartialEq for ServerMessage
source§impl Revisioned for ServerMessage
impl Revisioned for ServerMessage
source§impl Serialize for ServerMessage
impl Serialize for ServerMessage
impl StructuralPartialEq for ServerMessage
Auto Trait Implementations§
impl Freeze for ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)