pub struct ServiceOptions {
pub program: PathBuf,
pub background: BackgroundOptions,
pub locked: Arc<KeyringLocked>,
pub look: Duration,
pub entry: Option<LoginEntry>,
}Expand description
How the service runs.
Fields§
§program: PathBufIts own program, which the list must name for it to run.
background: BackgroundOptionsHow it holds each library’s role, as an app holds it.
locked: Arc<KeyringLocked>Whether the keystore holds its entry of a service and an account locked, as a Secret Service does until the person unlocks it: asked without a prompt.
look: DurationHow often it looks at the list, and again at a library that it cannot serve yet.
entry: Option<LoginEntry>The login entry, which it removes with the last library, as it does when it takes off the list a library that a passphrase protects.
Implementations§
Source§impl ServiceOptions
impl ServiceOptions
Sourcepub fn new(program: PathBuf, background: BackgroundOptions) -> Self
pub fn new(program: PathBuf, background: BackgroundOptions) -> Self
For program, holding each role as background says, with a keystore that is never
locked, looking every two seconds.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceOptions
impl !UnwindSafe for ServiceOptions
impl Forget for ServiceOptions
impl Freeze for ServiceOptions
impl Move for ServiceOptions
impl Send for ServiceOptions
impl Sync for ServiceOptions
impl Unpin for ServiceOptions
impl UnsafeUnpin for ServiceOptions
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