[−][src]Enum async_codec::EncodeResult
The result of an Encode::encode
call
Variants
Ok(usize)
Item was successfully encoded and took usize
bytes of the provided
buffer.
There was an error encoding the item.
Overflow(usize)
The encoded item would overflow the buffer.
May contain the needed buffer size to successfully hold the encoded
item. The value 0
indicates that the needed buffer size is
unknown.
Trait Implementations
impl<E> From<Result<usize, E>> for EncodeResult<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for EncodeResult<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for EncodeResult<E> where
E: Send,
E: Send,
impl<E> Sync for EncodeResult<E> where
E: Sync,
E: Sync,
impl<E> Unpin for EncodeResult<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for EncodeResult<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,