pub enum EncodeError {
InsufficientSize(InsufficientSizeError),
AlreadyEncoded,
}Available on crate feature
net only.Expand description
Errors that may arise when encoding a handshake record
Variantsยง
InsufficientSize(InsufficientSizeError)
Provided buffer was too small
AlreadyEncoded
The handshake record has already been encoded; do not call encode again
Trait Implementationsยง
Sourceยงimpl Debug for EncodeError
impl Debug for EncodeError
Sourceยงimpl Display for EncodeError
impl Display for EncodeError
Sourceยงimpl Error for EncodeError
impl Error for EncodeError
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()
Sourceยงimpl From<InsufficientSizeError> for EncodeError
impl From<InsufficientSizeError> for EncodeError
Sourceยงfn from(v: InsufficientSizeError) -> EncodeError
fn from(v: InsufficientSizeError) -> EncodeError
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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> 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::RequestSourceยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Sourceยงfn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.