Enum tentacle::service::ServiceError
source · [−]pub enum ServiceError {
DialerError {
address: Multiaddr,
error: DialerErrorKind,
},
ListenError {
address: Multiaddr,
error: ListenErrorKind,
},
ProtocolSelectError {
proto_name: Option<String>,
session_context: Arc<SessionContext>,
},
ProtocolError {
id: SessionId,
proto_id: ProtocolId,
error: Error,
},
SessionTimeout {
session_context: Arc<SessionContext>,
},
MuxerError {
session_context: Arc<SessionContext>,
error: Error,
},
ProtocolHandleError {
proto_id: ProtocolId,
error: ProtocolHandleErrorKind,
},
SessionBlocked {
session_context: Arc<SessionContext>,
},
}
Expand description
Error generated by the Service
Variants
DialerError
When dial remote error
ListenError
When listen error
ProtocolSelectError
Fields
proto_name: Option<String>
Protocol name, if none, timeout or other net problem, if Some, don’t support this proto
session_context: Arc<SessionContext>
Session context
Protocol select fail
ProtocolError
Protocol error during interaction
SessionTimeout
Fields
session_context: Arc<SessionContext>
Session context
After initializing the connection, the session does not open any protocol, suspected fd attack
MuxerError
Multiplex protocol error
ProtocolHandleError
Protocol handle error, will cause memory leaks/abnormal CPU usage tentacle will close after this error output
SessionBlocked
Fields
session_context: Arc<SessionContext>
Session context
Session blocked, can’t send message, if the task is too heavy in a short time. such as too many data cache on this session and can’t send to remote, it may cause oom, so this session will be kill by tentacle
Judging condition: unsent message size > send buffer size set by the user, default 24m
Trait Implementations
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