pub struct CallbackMsgBase { /* private fields */ }Expand description
Storage for the job id of a CallbackMsg.
Implementations§
Source§impl CallbackMsgBase
impl CallbackMsgBase
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a base whose job id is JobID::INVALID.
Sourcepub fn with_job_id(job_id: JobID) -> Self
pub fn with_job_id(job_id: JobID) -> Self
Creates a base with the given job id.
Sourcepub fn set_job_id(&mut self, id: JobID)
pub fn set_job_id(&mut self, id: JobID)
Stores a job id.
Trait Implementations§
Source§impl Clone for CallbackMsgBase
impl Clone for CallbackMsgBase
impl Copy for CallbackMsgBase
Source§impl Debug for CallbackMsgBase
impl Debug for CallbackMsgBase
Source§impl Default for CallbackMsgBase
impl Default for CallbackMsgBase
impl Eq for CallbackMsgBase
Source§impl Hash for CallbackMsgBase
impl Hash for CallbackMsgBase
Source§impl PartialEq for CallbackMsgBase
impl PartialEq for CallbackMsgBase
impl StructuralPartialEq for CallbackMsgBase
Auto Trait Implementations§
impl Freeze for CallbackMsgBase
impl RefUnwindSafe for CallbackMsgBase
impl Send for CallbackMsgBase
impl Sync for CallbackMsgBase
impl Unpin for CallbackMsgBase
impl UnsafeUnpin for CallbackMsgBase
impl UnwindSafe for CallbackMsgBase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.