pub enum RouterMessage {
MakeConnection(String),
ConnectionCreated(usize),
GetConnection,
ReturnConnection((Sender<TransactionMessage>, usize)),
CloseConnection(usize),
ConnectionClosed,
Error(NanoServiceError),
CloseConnectionPool,
ConnectionPoolClosed,
ShutDown,
}
Expand description
The message to be sent to the router.
§Variants
MakeConnection
: to make a connection using the string as the URLConnectionCreated
: a clarification of the connection created with the index of the allocatorGetConnection
: to get a random connectionReturnConnection
: returns a random collection from theGetConnection
requestCloseConnection
: to close the connection that belongs to the indexConnectionClosed
: a confirmation that the connection is closedError
: an errorShutdownConnectionPool
: shuts down the connection pool
Variants§
MakeConnection(String)
ConnectionCreated(usize)
GetConnection
ReturnConnection((Sender<TransactionMessage>, usize))
CloseConnection(usize)
ConnectionClosed
Error(NanoServiceError)
CloseConnectionPool
ConnectionPoolClosed
ShutDown
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouterMessage
impl RefUnwindSafe for RouterMessage
impl Send for RouterMessage
impl Sync for RouterMessage
impl Unpin for RouterMessage
impl UnwindSafe for RouterMessage
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