#[non_exhaustive]pub enum NtStringError {
    BufferSizeExceedsU16,
    NulNotFound,
    UnpairedUtf16Surrogate {
        unpaired_surrogate: u16,
    },
}Expand description
Central error type of nt-string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BufferSizeExceedsU16
The required buffer size exceeds an unsigned 16-bit integer (65535 bytes).
NulNotFound
No NUL character could be found.
UnpairedUtf16Surrogate
The buffer could not be decoded as UTF-16 due to the unpaired surrogate {unpaired_surrogate:#06X}.
Trait Implementations§
Source§impl Clone for NtStringError
 
impl Clone for NtStringError
Source§fn clone(&self) -> NtStringError
 
fn clone(&self) -> NtStringError
Returns a duplicate 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 Debug for NtStringError
 
impl Debug for NtStringError
Source§impl Display for NtStringError
 
impl Display for NtStringError
Source§impl Error for NtStringError
Available on crate feature std only. 
impl Error for NtStringError
Available on crate feature 
std only.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<DecodeUtf16Error> for NtStringError
 
impl From<DecodeUtf16Error> for NtStringError
Source§fn from(e: DecodeUtf16Error) -> Self
 
fn from(e: DecodeUtf16Error) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NtStringError
 
impl PartialEq for NtStringError
impl Eq for NtStringError
impl StructuralPartialEq for NtStringError
Auto Trait Implementations§
impl Freeze for NtStringError
impl RefUnwindSafe for NtStringError
impl Send for NtStringError
impl Sync for NtStringError
impl Unpin for NtStringError
impl UnwindSafe for NtStringError
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