Struct hexchat_unsafe_plugin::EventAttrs
source · [−]pub struct EventAttrs<'a> {
pub server_time: Option<SystemTime>,
pub raw_server_time: time_t,
pub use_raw_server_time: bool,
/* private fields */
}
Expand description
Event attributes.
Fields
server_time: Option<SystemTime>
👎 Deprecated since 2.3.0:
Use raw_server_time instead
Server time.
raw_server_time: time_t
Raw server time. Only does anything if use_raw_server_time
is set.
use_raw_server_time: bool
Whether to pass server_time
or raw_server_time
to hexchat.
Implementations
sourceimpl<'a> EventAttrs<'a>
impl<'a> EventAttrs<'a>
sourcepub fn new() -> EventAttrs<'a>
pub fn new() -> EventAttrs<'a>
Creates a new EventAttrs
.
Trait Implementations
sourceimpl<'a> Clone for EventAttrs<'a>
impl<'a> Clone for EventAttrs<'a>
sourcefn clone(&self) -> EventAttrs<'a>
fn clone(&self) -> EventAttrs<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for EventAttrs<'a>
impl<'a> Send for EventAttrs<'a>
impl<'a> Sync for EventAttrs<'a>
impl<'a> Unpin for EventAttrs<'a>
impl<'a> UnwindSafe for EventAttrs<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more