Struct octseq::str::FromUtf8Error
source · pub struct FromUtf8Error<Octets> { /* private fields */ }
Expand description
An error happened when converting octets into a string.
Implementations§
source§impl<Octets> FromUtf8Error<Octets>
impl<Octets> FromUtf8Error<Octets>
sourcepub fn into_octets(self) -> Octets
pub fn into_octets(self) -> Octets
Returns the octets sequence that failed to convert.
sourcepub fn utf8_error(&self) -> Utf8Error
pub fn utf8_error(&self) -> Utf8Error
Returns the reason for the conversion error.
Trait Implementations§
source§impl<Octets: Clone> Clone for FromUtf8Error<Octets>
impl<Octets: Clone> Clone for FromUtf8Error<Octets>
source§fn clone(&self) -> FromUtf8Error<Octets>
fn clone(&self) -> FromUtf8Error<Octets>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Octets> Debug for FromUtf8Error<Octets>
impl<Octets> Debug for FromUtf8Error<Octets>
source§impl<Octets> Display for FromUtf8Error<Octets>
impl<Octets> Display for FromUtf8Error<Octets>
source§impl<Octets> Error for FromUtf8Error<Octets>
impl<Octets> Error for FromUtf8Error<Octets>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Octets: PartialEq> PartialEq for FromUtf8Error<Octets>
impl<Octets: PartialEq> PartialEq for FromUtf8Error<Octets>
source§fn eq(&self, other: &FromUtf8Error<Octets>) -> bool
fn eq(&self, other: &FromUtf8Error<Octets>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Octets: Copy> Copy for FromUtf8Error<Octets>
impl<Octets: Eq> Eq for FromUtf8Error<Octets>
impl<Octets> StructuralPartialEq for FromUtf8Error<Octets>
Auto Trait Implementations§
impl<Octets> Freeze for FromUtf8Error<Octets>where
Octets: Freeze,
impl<Octets> RefUnwindSafe for FromUtf8Error<Octets>where
Octets: RefUnwindSafe,
impl<Octets> Send for FromUtf8Error<Octets>where
Octets: Send,
impl<Octets> Sync for FromUtf8Error<Octets>where
Octets: Sync,
impl<Octets> Unpin for FromUtf8Error<Octets>where
Octets: Unpin,
impl<Octets> UnwindSafe for FromUtf8Error<Octets>where
Octets: UnwindSafe,
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.