Enum mpc_websocket::services::ServiceError
source · [−]pub enum ServiceError {
PartiesTooSmall,
ThresholdTooSmall,
ThresholdRange,
GroupFull(String),
GroupDoesNotExist(String),
SessionDoesNotExist(String),
PartyDoesNotExist(u16),
BadParty(u16),
KeygenSessionExpected,
BadPeerReceiver(u16),
BadConnection(usize, String),
}
Expand description
Error thrown by the JSON-RPC services.
Variants
PartiesTooSmall
Error generated when a parties parameter is too small.
ThresholdTooSmall
Error generated when a parties parameter is too small.
ThresholdRange
Error generated when the threshold exceeds the parties.
GroupFull(String)
Error generated when a group has enough connections.
GroupDoesNotExist(String)
Error generated when a group does not exist.
SessionDoesNotExist(String)
Error generated when a session does not exist.
PartyDoesNotExist(u16)
Error generated when a party number does not exist.
BadParty(u16)
Error generated when a party number does not belong to the caller.
KeygenSessionExpected
Error generated when a session kind was given, but does not match the expected kind.
BadPeerReceiver(u16)
Error generated when the receiver for a peer to peer message does not exist.
BadConnection(usize, String)
Error generated when a client connection does not belong to the specified group.
Trait Implementations
sourceimpl Debug for ServiceError
impl Debug for ServiceError
sourceimpl Display for ServiceError
impl Display for ServiceError
sourceimpl Error for ServiceError
impl Error for ServiceError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl UnwindSafe for ServiceError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more