Enum perspective_client::utils::ClientError
source · pub enum ClientError {
Internal(String),
NotInitialized,
Unknown(String),
Option,
OptionResponseFailed(Box<Option<ClientResp>>),
Utf8(Utf8Error),
DecodeError(DecodeError),
ResponseFailed(Box<ClientResp>),
NotImplemented(&'static str),
BadTableOptions,
ExternalError(Box<dyn Error + Send + Sync>),
ProtoError(EncodeError),
}Variants§
Internal(String)
NotInitialized
Unknown(String)
Option
OptionResponseFailed(Box<Option<ClientResp>>)
Utf8(Utf8Error)
DecodeError(DecodeError)
ResponseFailed(Box<ClientResp>)
NotImplemented(&'static str)
BadTableOptions
ExternalError(Box<dyn Error + Send + Sync>)
ProtoError(EncodeError)
Trait Implementations§
source§impl Debug for ClientError
impl Debug for ClientError
source§impl Display for ClientError
impl Display for ClientError
source§impl Error for ClientError
impl Error for ClientError
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<ClientResp> for ClientError
impl From<ClientResp> for ClientError
source§fn from(value: ClientResp) -> Self
fn from(value: ClientResp) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for ClientError
impl From<DecodeError> for ClientError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<EncodeError> for ClientError
impl From<EncodeError> for ClientError
source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<Utf8Error> for ClientError
impl From<Utf8Error> for ClientError
source§impl Session<ClientError> for ProxySession
impl Session<ClientError> for ProxySession
source§async fn handle_request(&self, request: &[u8]) -> Result<(), ClientError>
async fn handle_request(&self, request: &[u8]) -> Result<(), ClientError>
Handle an incoming request from the
Client. Calling
Session::handle_request will result in the send_response parameter
which was used to construct this Session to fire one or more times. Read moresource§async fn poll(&self) -> Result<(), ClientError>
async fn poll(&self) -> Result<(), ClientError>
Flush any pending messages which may have resulted from previous
Session::handle_request calls. Calling Session::poll may result
in the send_response parameter which was used to construct this (or
other) Session to fire. Whenever a Session::handle_request
method is invoked for a perspective_server::Server, at least one
Session::poll should be scheduled to clear other clients message
queues. Read moresource§async fn close(self)
async fn close(self)
Close this
Session, cleaning up any callbacks (e.g. arguments
provided to Session::handle_request) and resources (e.g. views
returned by a call to Table::view). Read moreAuto Trait Implementations§
impl Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more