#[non_exhaustive]pub struct ExecutionMessage {
pub message: String,
pub level: SyslogLevel,
}Expand description
A PHP error, warning, or notice captured during execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.message: String§level: SyslogLevelImplementations§
Source§impl ExecutionMessage
impl ExecutionMessage
pub fn new(level: SyslogLevel, message: impl Into<String>) -> Self
pub fn from_syslog(syslog_level: i32, message: impl Into<String>) -> Self
pub fn is_error(&self) -> bool
pub fn is_warning(&self) -> bool
pub fn is_warning_or_worse(&self) -> bool
Trait Implementations§
Source§impl Clone for ExecutionMessage
impl Clone for ExecutionMessage
Source§fn clone(&self) -> ExecutionMessage
fn clone(&self) -> ExecutionMessage
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 ExecutionMessage
impl Debug for ExecutionMessage
Auto Trait Implementations§
impl Freeze for ExecutionMessage
impl RefUnwindSafe for ExecutionMessage
impl Send for ExecutionMessage
impl Sync for ExecutionMessage
impl Unpin for ExecutionMessage
impl UnwindSafe for ExecutionMessage
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