pub enum OfferError {
InvalidChannelId(ChannelId),
ChannelIdInUse(ChannelId),
AlreadyExists(OfferKey),
IncompatibleResources,
TooManyChannels,
MismatchedMonitorId(Option<MonitorId>, MonitorId),
}
Variants§
InvalidChannelId(ChannelId)
ChannelIdInUse(ChannelId)
AlreadyExists(OfferKey)
IncompatibleResources
TooManyChannels
MismatchedMonitorId(Option<MonitorId>, MonitorId)
Trait Implementations§
Source§impl Debug for OfferError
impl Debug for OfferError
Source§impl Display for OfferError
impl Display for OfferError
Source§impl Error for OfferError
impl Error for OfferError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<OfferError> for RestoreError
impl From<OfferError> for RestoreError
Source§fn from(source: OfferError) -> Self
fn from(source: OfferError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OfferError
impl RefUnwindSafe for OfferError
impl Send for OfferError
impl Sync for OfferError
impl Unpin for OfferError
impl UnwindSafe for OfferError
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