pub enum MigrationAddress {
exec(MigrationExecCommand),
file(FileMigrationArgs),
rdma(InetSocketAddress),
socket(SocketAddress),
}
Variants§
Implementations§
Source§impl MigrationAddress
impl MigrationAddress
pub fn transport(&self) -> MigrationAddressType
Trait Implementations§
Source§impl Clone for MigrationAddress
impl Clone for MigrationAddress
Source§fn clone(&self) -> MigrationAddress
fn clone(&self) -> MigrationAddress
Returns a duplicate 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 MigrationAddress
impl Debug for MigrationAddress
Source§impl<'de> Deserialize<'de> for MigrationAddress
impl<'de> Deserialize<'de> for MigrationAddress
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 From<FileMigrationArgs> for MigrationAddress
impl From<FileMigrationArgs> for MigrationAddress
Source§fn from(val: FileMigrationArgs) -> Self
fn from(val: FileMigrationArgs) -> Self
Converts to this type from the input type.
Source§impl From<InetSocketAddress> for MigrationAddress
impl From<InetSocketAddress> for MigrationAddress
Source§fn from(val: InetSocketAddress) -> Self
fn from(val: InetSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<MigrationExecCommand> for MigrationAddress
impl From<MigrationExecCommand> for MigrationAddress
Source§fn from(val: MigrationExecCommand) -> Self
fn from(val: MigrationExecCommand) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddress> for MigrationAddress
impl From<SocketAddress> for MigrationAddress
Source§fn from(val: SocketAddress) -> Self
fn from(val: SocketAddress) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MigrationAddress
impl RefUnwindSafe for MigrationAddress
impl Send for MigrationAddress
impl Sync for MigrationAddress
impl Unpin for MigrationAddress
impl UnwindSafe for MigrationAddress
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