pub struct ResumeParam {
pub epoch: u64,
pub number: u64,
}Expand description
The parameter of a resume/1 token.
The parameter is the epoch in exactly 16 hexadecimal digits, then a sample number in 1 to 16 hexadecimal digits, with no separator. In an offer, the number is the next number that the inlet expects. In an answer, the number is the first live sample of the connection.
Fields§
§epoch: u64The random value that identifies one run of the outlet.
number: u64A seq number.
Implementations§
Source§impl ResumeParam
impl ResumeParam
Sourcepub fn parse(param: &str) -> Option<ResumeParam>
pub fn parse(param: &str) -> Option<ResumeParam>
Read a parameter. The result is None if the parameter has fewer
than 17 or more than 32 digits, or a digit that is not hexadecimal.
Trait Implementations§
Source§impl Clone for ResumeParam
impl Clone for ResumeParam
impl Copy for ResumeParam
Source§impl Debug for ResumeParam
impl Debug for ResumeParam
impl Eq for ResumeParam
Source§impl PartialEq for ResumeParam
impl PartialEq for ResumeParam
impl StructuralPartialEq for ResumeParam
Auto Trait Implementations§
impl Forget for ResumeParam
impl Freeze for ResumeParam
impl Move for ResumeParam
impl RefUnwindSafe for ResumeParam
impl Send for ResumeParam
impl Sync for ResumeParam
impl Unpin for ResumeParam
impl UnsafeUnpin for ResumeParam
impl UnwindSafe for ResumeParam
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