pub struct Opts {
pub bind: Bind,
pub port: u16,
pub repo: PathBuf,
pub open: bool,
pub merge: Option<String>,
}Expand description
How to serve.
Fields§
§bind: BindAddress to listen on.
port: u16Port to listen on.
repo: PathBufRepository used for tasks posted without one.
open: boolPrint the URL on its own line for a caller that wants to hand it to a browser. magi never launches one itself.
merge: Option<String>Merge mode override for the independent scheduler (none, local,
pr); None leaves it to each repository’s own config.
The same override as magi serve --merge, passed when the phone starts
dispatch without requiring a terminal.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Opts
impl Freeze for Opts
impl Move for Opts
impl RefUnwindSafe for Opts
impl Send for Optswhere
RawVecInner: Send,
impl Sync for Optswhere
RawVecInner: Sync,
impl Unpin for Opts
impl UnsafeUnpin for Opts
impl UnwindSafe for Optswhere
RawVecInner: UnwindSafe,
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