Struct cyfs_base::BuckyError
source · [−]pub struct BuckyError { /* private fields */ }
Implementations
sourceimpl BuckyError
impl BuckyError
pub fn new(code: impl Into<BuckyErrorCode>, msg: impl Into<String>) -> Self
pub fn set_code(&mut self, code: impl Into<BuckyErrorCode>)
pub fn code(&self) -> BuckyErrorCode
pub fn set_msg(&mut self, msg: impl Into<String>)
pub fn msg(&self) -> &str
pub fn origin(&self) -> &Option<BuckyOriginError>
pub fn into_origin(self) -> Option<BuckyOriginError>
pub fn error_with_log<T>(msg: impl Into<String> + Display) -> BuckyResult<T>
Trait Implementations
sourceimpl Clone for BuckyError
impl Clone for BuckyError
sourceimpl Debug for BuckyError
impl Debug for BuckyError
sourceimpl Display for BuckyError
impl Display for BuckyError
sourceimpl Error for BuckyError
impl Error for BuckyError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<&str> for BuckyError
impl From<&str> for BuckyError
sourcefn from(msg: &str) -> BuckyError
fn from(msg: &str) -> BuckyError
Converts to this type from the input type.
sourceimpl From<(BuckyErrorCode, &str)> for BuckyError
impl From<(BuckyErrorCode, &str)> for BuckyError
sourcefn from(cm: (BuckyErrorCode, &str)) -> BuckyError
fn from(cm: (BuckyErrorCode, &str)) -> BuckyError
Converts to this type from the input type.
sourceimpl From<(BuckyErrorCode, String)> for BuckyError
impl From<(BuckyErrorCode, String)> for BuckyError
sourcefn from(cm: (BuckyErrorCode, String)) -> BuckyError
fn from(cm: (BuckyErrorCode, String)) -> BuckyError
Converts to this type from the input type.
sourceimpl From<AddrParseError> for BuckyError
impl From<AddrParseError> for BuckyError
sourcefn from(err: AddrParseError) -> BuckyError
fn from(err: AddrParseError) -> BuckyError
Converts to this type from the input type.
sourceimpl From<Box<dyn Error + 'static, Global>> for BuckyError
impl From<Box<dyn Error + 'static, Global>> for BuckyError
sourcefn from(err: Box<dyn Error>) -> BuckyError
fn from(err: Box<dyn Error>) -> BuckyError
Converts to this type from the input type.
sourceimpl From<BuckyErrorCode> for BuckyError
impl From<BuckyErrorCode> for BuckyError
sourcefn from(code: BuckyErrorCode) -> BuckyError
fn from(code: BuckyErrorCode) -> BuckyError
Converts to this type from the input type.
sourceimpl From<CodeError> for BuckyError
impl From<CodeError> for BuckyError
sourceimpl From<Error> for BuckyError
impl From<Error> for BuckyError
sourcefn from(err: Error) -> BuckyError
fn from(err: Error) -> BuckyError
Converts to this type from the input type.
sourceimpl From<Error> for BuckyError
impl From<Error> for BuckyError
sourcefn from(err: Error) -> BuckyError
fn from(err: Error) -> BuckyError
Converts to this type from the input type.
sourceimpl From<Error> for BuckyError
impl From<Error> for BuckyError
sourcefn from(err: Error) -> BuckyError
fn from(err: Error) -> BuckyError
Converts to this type from the input type.
sourceimpl From<Error> for BuckyError
impl From<Error> for BuckyError
sourceimpl From<Error> for BuckyError
impl From<Error> for BuckyError
sourceimpl From<FromHexError> for BuckyError
impl From<FromHexError> for BuckyError
sourcefn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for BuckyError
impl From<ParseError> for BuckyError
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for BuckyError
impl From<ParseFloatError> for BuckyError
sourcefn from(err: ParseFloatError) -> BuckyError
fn from(err: ParseFloatError) -> BuckyError
Converts to this type from the input type.
sourceimpl From<ParseIntError> for BuckyError
impl From<ParseIntError> for BuckyError
sourcefn from(err: ParseIntError) -> BuckyError
fn from(err: ParseIntError) -> BuckyError
Converts to this type from the input type.
sourceimpl From<StatusCode> for BuckyError
impl From<StatusCode> for BuckyError
sourcefn from(code: StatusCode) -> Self
fn from(code: StatusCode) -> Self
Converts to this type from the input type.
sourceimpl From<String> for BuckyError
impl From<String> for BuckyError
sourcefn from(msg: String) -> BuckyError
fn from(msg: String) -> BuckyError
Converts to this type from the input type.
sourceimpl From<StripPrefixError> for BuckyError
impl From<StripPrefixError> for BuckyError
sourcefn from(err: StripPrefixError) -> BuckyError
fn from(err: StripPrefixError) -> BuckyError
Converts to this type from the input type.
sourceimpl From<TimeoutError> for BuckyError
impl From<TimeoutError> for BuckyError
sourcefn from(err: TimeoutError) -> BuckyError
fn from(err: TimeoutError) -> BuckyError
Converts to this type from the input type.
sourceimpl From<Utf8Error> for BuckyError
impl From<Utf8Error> for BuckyError
sourcefn from(err: Utf8Error) -> BuckyError
fn from(err: Utf8Error) -> BuckyError
Converts to this type from the input type.
sourceimpl From<ZipError> for BuckyError
impl From<ZipError> for BuckyError
sourceimpl From<u32> for BuckyError
impl From<u32> for BuckyError
sourcefn from(err: u32) -> BuckyError
fn from(err: u32) -> BuckyError
Converts to this type from the input type.
sourceimpl Into<BuckyErrorCode> for BuckyError
impl Into<BuckyErrorCode> for BuckyError
sourcefn into(self) -> BuckyErrorCode
fn into(self) -> BuckyErrorCode
Converts this type into the (usually inferred) input type.
sourceimpl JsonCodec<BuckyError> for BuckyError
impl JsonCodec<BuckyError> for BuckyError
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> BuckyResult<T>
fn decode_value(value: &Value) -> BuckyResult<T>
fn encode_value(&self) -> Value
sourceimpl<'__de__> RawDecode<'__de__> for BuckyError
impl<'__de__> RawDecode<'__de__> for BuckyError
fn raw_decode(__buf__: &'__de__ [u8]) -> BuckyResult<(Self, &'__de__ [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for BuckyError
impl RawEncode for BuckyError
fn raw_encode<'__de__>(
&self,
__buf__: &'__de__ mut [u8],
__purpose__: &Option<RawEncodePurpose>
) -> BuckyResult<&'__de__ mut [u8]>
fn raw_measure(
&self,
__purpose__: &Option<RawEncodePurpose>
) -> BuckyResult<usize>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations
impl !RefUnwindSafe for BuckyError
impl Send for BuckyError
impl Sync for BuckyError
impl Unpin for BuckyError
impl !UnwindSafe for BuckyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more