pub struct ThreadReference { /* private fields */ }Expand description
Simple thread reference path rooted at one message id.
Implementations§
Source§impl ThreadReference
impl ThreadReference
Sourcepub const fn new(root: MessageId) -> ThreadReference
pub const fn new(root: MessageId) -> ThreadReference
Creates a thread reference from the root message id.
Sourcepub fn with_reply(self, reply: MessageId) -> ThreadReference
pub fn with_reply(self, reply: MessageId) -> ThreadReference
Adds a reply id and returns the updated thread reference.
Sourcepub fn references(&self) -> References
pub fn references(&self) -> References
Converts the thread reference into a References value.
Trait Implementations§
Source§impl Clone for ThreadReference
impl Clone for ThreadReference
Source§fn clone(&self) -> ThreadReference
fn clone(&self) -> ThreadReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreadReference
impl Debug for ThreadReference
Source§impl PartialEq for ThreadReference
impl PartialEq for ThreadReference
Source§fn eq(&self, other: &ThreadReference) -> bool
fn eq(&self, other: &ThreadReference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ThreadReference
impl StructuralPartialEq for ThreadReference
Auto Trait Implementations§
impl Freeze for ThreadReference
impl RefUnwindSafe for ThreadReference
impl Send for ThreadReference
impl Sync for ThreadReference
impl Unpin for ThreadReference
impl UnsafeUnpin for ThreadReference
impl UnwindSafe for ThreadReference
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