Enum IdentifierError
pub enum IdentifierError {
ContainSeparator {
id: String,
},
InvalidLength {
id: String,
length: usize,
min: usize,
max: usize,
},
InvalidCharacter {
id: String,
},
Empty,
InvalidCounterpartyChannelId,
}
Variants§
ContainSeparator
identifier {id}
cannot contain separator ‘/’
InvalidLength
identifier {id}
has invalid length {length}
must be between {min}
-{max}
characters
InvalidCharacter
identifier {id}
must only contain alphanumeric characters or .
, _
, +
, -
, #
, - [
, ]
, <
, >
Empty
identifier cannot be empty
InvalidCounterpartyChannelId
Invalid channel id in counterparty
Trait Implementations§
§impl Debug for IdentifierError
impl Debug for IdentifierError
§impl Display for IdentifierError
impl Display for IdentifierError
§impl Error for IdentifierError
Available on crate feature std
only.
impl Error for IdentifierError
Available on crate feature
std
only.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()
§impl Serialize for IdentifierError
impl Serialize for IdentifierError
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for IdentifierError
impl RefUnwindSafe for IdentifierError
impl Send for IdentifierError
impl Sync for IdentifierError
impl Unpin for IdentifierError
impl UnwindSafe for IdentifierError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request