Enum mutiny_core::redshift::RedshiftStatus
source · pub enum RedshiftStatus {
ChannelOpening,
ChannelOpened,
AttemptingPayments,
ClosingChannels,
Completed,
Failed(String),
}
Variants§
ChannelOpening
The channel to the introduction node is opening. We are waiting for the channel to open before we can send the payment.
ChannelOpened
The channel to the introduction node is open. We are ready to being attempting payments.
AttemptingPayments
The channel to the introduction node is open. We are attempting to pay the receiving node.
ClosingChannels
The payments have been completed and now we are attempting to close the channels.
Completed
The redshift was success and is now complete.
Failed(String)
The redshift failed. The error is given.
Implementations§
source§impl RedshiftStatus
impl RedshiftStatus
sourcepub fn is_in_progress(&self) -> bool
pub fn is_in_progress(&self) -> bool
Returns true if the redshift is in progress.
Trait Implementations§
source§impl Clone for RedshiftStatus
impl Clone for RedshiftStatus
source§fn clone(&self) -> RedshiftStatus
fn clone(&self) -> RedshiftStatus
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 RedshiftStatus
impl Debug for RedshiftStatus
source§impl<'de> Deserialize<'de> for RedshiftStatus
impl<'de> Deserialize<'de> for RedshiftStatus
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 RedshiftStatus
impl PartialEq for RedshiftStatus
source§fn eq(&self, other: &RedshiftStatus) -> bool
fn eq(&self, other: &RedshiftStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RedshiftStatus
impl Serialize for RedshiftStatus
impl StructuralPartialEq for RedshiftStatus
Auto Trait Implementations§
impl RefUnwindSafe for RedshiftStatus
impl Send for RedshiftStatus
impl Sync for RedshiftStatus
impl Unpin for RedshiftStatus
impl UnwindSafe for RedshiftStatus
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