Skip to main content

TimeHost

Trait TimeHost 

Source
pub trait TimeHost {
    // Required methods
    fn tick_id(&self) -> TickId;
    fn frame_id(&self) -> FrameId;
    fn next_timer_token(&mut self) -> TimerToken;
    fn next_clipboard_token(&mut self) -> ClipboardToken;
    fn next_share_sheet_token(&mut self) -> ShareSheetToken;
    fn next_image_upload_token(&mut self) -> ImageUploadToken;
}

Required Methods§

Source

fn tick_id(&self) -> TickId

Current tick id (monotonically increasing).

Source

fn frame_id(&self) -> FrameId

Current frame id (monotonically increasing).

Source

fn next_timer_token(&mut self) -> TimerToken

Allocates the next timer token.

Source

fn next_clipboard_token(&mut self) -> ClipboardToken

Allocates the next clipboard token.

Source

fn next_share_sheet_token(&mut self) -> ShareSheetToken

Allocates the next share-sheet token.

Source

fn next_image_upload_token(&mut self) -> ImageUploadToken

Allocates the next image-upload token.

Implementors§