pub struct MasterTransfer { /* private fields */ }Expand description
Manages a master transfer operation.
Implementations§
Source§impl MasterTransfer
impl MasterTransfer
Sourcepub fn new(config: MasterTransferConfig) -> Self
pub fn new(config: MasterTransferConfig) -> Self
Creates a new master transfer.
Sourcepub fn get_state(&self) -> TransferState
pub fn get_state(&self) -> TransferState
Get the current transfer state.
Sourcepub fn get_target(&self) -> &str
pub fn get_target(&self) -> &str
Get the target node name.
Sourcepub fn get_config(&self) -> &MasterTransferConfig
pub fn get_config(&self) -> &MasterTransferConfig
Get the transfer configuration.
Sourcepub fn is_timed_out(&self) -> bool
pub fn is_timed_out(&self) -> bool
Check if the transfer has timed out.
Auto Trait Implementations§
impl !Freeze for MasterTransfer
impl !RefUnwindSafe for MasterTransfer
impl Send for MasterTransfer
impl Sync for MasterTransfer
impl Unpin for MasterTransfer
impl UnsafeUnpin for MasterTransfer
impl UnwindSafe for MasterTransfer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more