pub struct Origin {
pub module_path: &'static str,
pub filename: &'static str,
pub line_nr: u32,
}
Expand description
Structure to point to a location in the program code. It is used to know where the event was set, but may be used for other use cases aswell.
[req:event.origin]
Fields§
§module_path: &'static str
Module path to the code location.
Note: Use module_path!()
.
filename: &'static str
Filename where the code is located.
Note: Use file!()
.
line_nr: u32
Line number where the code is located.
Note: Use line!()
.
Implementations§
Trait Implementations§
source§impl PartialEq<Origin> for Origin
impl PartialEq<Origin> for Origin
impl Eq for Origin
impl StructuralEq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
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