pub struct Ticket {
pub id: StreamId,
pub side: Side,
pub epoch: u64,
}Expand description
One end of a stream, in the form that crosses a setup channel: the
address, the side, and the epoch of the table the address was minted
in. Prints as <address>/b/<epoch>.
Two things keep a ticket from reaching the wrong memory: the slot generation inside the address separates reuses of a slot within one epoch, and the epoch separates before and after a quiescent reset or a recreated segment, which reinstalls slots from generation one.
Fields§
§id: StreamId§side: Side§epoch: u64Trait Implementations§
impl Copy for Ticket
impl Eq for Ticket
impl StructuralPartialEq for Ticket
Auto Trait Implementations§
impl Freeze for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnsafeUnpin for Ticket
impl UnwindSafe for Ticket
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