pub struct ChannelInfo { /* private fields */ }
Implementations§
Source§impl ChannelInfo
impl ChannelInfo
pub fn new(message: String) -> Self
Sourcepub fn head(&mut self) -> Option<String>
pub fn head(&mut self) -> Option<String>
Get head element of a queue, this doesn’t remove it from queue.
Any elements that has been visited more than 16 times will be forced to dequeue.
pub fn update_instant(&mut self)
Sourcepub fn dequeue(&mut self) -> bool
pub fn dequeue(&mut self) -> bool
You should call head to get the head element and then call this method to remove it from queue.
pub fn len(&self) -> usize
Auto Trait Implementations§
impl Freeze for ChannelInfo
impl RefUnwindSafe for ChannelInfo
impl Send for ChannelInfo
impl Sync for ChannelInfo
impl Unpin for ChannelInfo
impl UnwindSafe for ChannelInfo
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