#[repr(u32)]pub enum NodeError {
Show 13 variants
Internal = 1,
NodeRemoved = 2,
NameMissing = 3,
NameInvalid = 4,
NameAlreadyExists = 5,
OfferSourceNameMissing = 6,
OfferRefExists = 7,
SymbolNameMissing = 8,
SymbolAddressMissing = 9,
SymbolAlreadyExists = 10,
UnbindChildrenInProgress = 11,
UnsupportedArgs = 12,
UnknownOrdinal_(u32),
}
Expand description
Error codes for the Node protocol.
Variants§
Internal = 1
NodeRemoved = 2
NameMissing = 3
NameInvalid = 4
NameAlreadyExists = 5
OfferSourceNameMissing = 6
OfferRefExists = 7
SymbolNameMissing = 8
SymbolAddressMissing = 9
SymbolAlreadyExists = 10
UnbindChildrenInProgress = 11
UnsupportedArgs = 12
UnknownOrdinal_(u32)
Trait Implementations§
Source§impl Encodable for NodeError
impl Encodable for NodeError
Source§type Encoded = WireNodeError
type Encoded = WireNodeError
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl From<NodeError> for WireNodeError
impl From<NodeError> for WireNodeError
Source§impl From<WireNodeError> for NodeError
impl From<WireNodeError> for NodeError
Source§fn from(wire: WireNodeError) -> Self
fn from(wire: WireNodeError) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireNodeError> for NodeError
impl TakeFrom<WireNodeError> for NodeError
Source§fn take_from(from: &WireNodeError) -> Self
fn take_from(from: &WireNodeError) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for NodeError
impl Eq for NodeError
impl StructuralPartialEq for NodeError
Auto Trait Implementations§
impl Freeze for NodeError
impl RefUnwindSafe for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl UnwindSafe for NodeError
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