pub struct SwitchOpts {
pub keep_bridge: bool,
pub backup_sessions: bool,
pub keep_backups: usize,
}Expand description
Knobs that change what a switch does rather than which account it targets.
Fields§
§keep_bridge: boolKeep bridge-state.json instead of deleting it. Off by default, so the
shipped behaviour matches claude-acc; on, it turns “does the remote
bridge cause the browser disconnect?” into a one-command experiment.
backup_sessions: boolAlso archive the whole session tree. Off by default: the session merge is additive (the older copy always survives in its source folder), so a full-tree archive costs tens of megabytes per switch to protect against nothing. On, it matches claude-acc byte for byte.
keep_backups: usizeRollback archives to retain.
Trait Implementations§
Source§impl Clone for SwitchOpts
impl Clone for SwitchOpts
Source§fn clone(&self) -> SwitchOpts
fn clone(&self) -> SwitchOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwitchOpts
impl Debug for SwitchOpts
Auto Trait Implementations§
impl Freeze for SwitchOpts
impl RefUnwindSafe for SwitchOpts
impl Send for SwitchOpts
impl Sync for SwitchOpts
impl Unpin for SwitchOpts
impl UnsafeUnpin for SwitchOpts
impl UnwindSafe for SwitchOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more