Struct borked::BaseBork [−][src]
Expand description
Basic bork implemntation. Used by borked! macro, But could also be useful for use as a basic error type. (or as a templeate for implementing custom Bork errors.
Fields
name: String
cause: Option<Box<dyn BorkChain>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BaseBork
impl !UnwindSafe for BaseBork
Blanket Implementations
Used to store Bork within the Bork referenced by self. The stored Error is considered to be the cause of the referenced Error. The stored error can then be retrieved with the cause() fn. Read more
Return a new Instantiation. Return type is an option, so None can be returned if it is otherwise inconvienient to implement this. The other traits BorkWithMsg and/or BorkNoMsg can be implemented instead for a method that is not Optional. Read more
Get the cause of the error. This is set either at Instantiation of the Error, or through the chain fn. Read more
Used for downcasting Borks to their underlying type.
Mutably borrows from an owned value. Read more