pub struct TransferLifecycle { /* private fields */ }Expand description
Cloneable observer for one transfer guard.
Implementations§
Source§impl TransferLifecycle
impl TransferLifecycle
Sourcepub fn start(request: &TransferRequest) -> (Self, TransferGuard)
pub fn start(request: &TransferRequest) -> (Self, TransferGuard)
Starts a lifecycle and returns its mutable RAII guard.
Sourcepub fn destination(&self) -> &HostId
pub fn destination(&self) -> &HostId
Returns the destination host.
Sourcepub fn snapshot(&self) -> TransferGuardState
pub fn snapshot(&self) -> TransferGuardState
Returns a consistent state snapshot.
Trait Implementations§
Source§impl Clone for TransferLifecycle
impl Clone for TransferLifecycle
Source§fn clone(&self) -> TransferLifecycle
fn clone(&self) -> TransferLifecycle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransferLifecycle
impl RefUnwindSafe for TransferLifecycle
impl Send for TransferLifecycle
impl Sync for TransferLifecycle
impl Unpin for TransferLifecycle
impl UnsafeUnpin for TransferLifecycle
impl UnwindSafe for TransferLifecycle
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