pub struct StreamingError { /* private fields */ }Expand description
Error type for streaming operations
Implementations§
Source§impl StreamingError
impl StreamingError
Sourcepub fn new<E: Into<BoxError>>(error: E) -> Self
pub fn new<E: Into<BoxError>>(error: E) -> Self
Create a new streaming error from any error type
Sourcepub fn with_kind<E: Into<BoxError>>(error: E, kind: StreamingErrorKind) -> Self
pub fn with_kind<E: Into<BoxError>>(error: E, kind: StreamingErrorKind) -> Self
Create a streaming error with a specific kind
Sourcepub fn serialization<E: Into<BoxError>>(error: E) -> Self
pub fn serialization<E: Into<BoxError>>(error: E) -> Self
Create a serialization error
Sourcepub fn concurrency<E: Into<BoxError>>(error: E) -> Self
pub fn concurrency<E: Into<BoxError>>(error: E) -> Self
Create a concurrency error
Sourcepub fn consistency<E: Into<BoxError>>(error: E) -> Self
pub fn consistency<E: Into<BoxError>>(error: E) -> Self
Create a consistency error
Sourcepub fn content_addressing<E: Into<BoxError>>(error: E) -> Self
pub fn content_addressing<E: Into<BoxError>>(error: E) -> Self
Create a content addressing error
Trait Implementations§
Source§impl Debug for StreamingError
impl Debug for StreamingError
Source§impl Display for StreamingError
impl Display for StreamingError
Source§impl Error for StreamingError
impl Error for StreamingError
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<ClientStreamingError> for StreamingError
impl From<ClientStreamingError> for StreamingError
Source§fn from(error: ClientStreamingError) -> Self
fn from(error: ClientStreamingError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StreamingError
impl From<Error> for StreamingError
Source§impl From<HttpCacheError> for StreamingError
impl From<HttpCacheError> for StreamingError
Source§fn from(error: HttpCacheError) -> Self
fn from(error: HttpCacheError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for StreamingError
impl From<Infallible> for StreamingError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<StreamingError> for ClientStreamingError
impl From<StreamingError> for ClientStreamingError
Source§fn from(error: StreamingError) -> Self
fn from(error: StreamingError) -> Self
Converts to this type from the input type.
Source§impl From<StreamingError> for HttpCacheError
impl From<StreamingError> for HttpCacheError
Source§fn from(error: StreamingError) -> Self
fn from(error: StreamingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamingError
impl !RefUnwindSafe for StreamingError
impl Send for StreamingError
impl Sync for StreamingError
impl Unpin for StreamingError
impl !UnwindSafe for StreamingError
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> 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