Skip to content

Commit

Permalink
refactor: use better PersistMode enum names
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 25, 2024
1 parent d9f7bfd commit 3e1867b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl Recording {
},
*IS_EXPERIMENTAL_MODE,
Some(&restore_token),
PersistMode::ExplicitlyRevoked,
PersistMode::Persistent,
parent,
)
.await
Expand Down
9 changes: 6 additions & 3 deletions src/screencast_session/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ bitflags! {
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[repr(u32)]
pub enum PersistMode {
DoNot = 0,
Application = 1,
ExplicitlyRevoked = 2,
/// Do not persist.
None = 0,
/// Persist as long as the application is alive.
Transient = 1,
/// Persist until the user revokes this permission.
Persistent = 2,
}

type StreamVariantType = (u32, VariantDict);
Expand Down

0 comments on commit 3e1867b

Please sign in to comment.