pub struct ServeOptions {
pub data: PathBuf,
pub config: PathBuf,
pub listen: SocketAddr,
pub token_file: PathBuf,
pub p2p: bool,
pub header_bootstrap: Option<PathBuf>,
pub chain_peers: Vec<SocketAddr>,
pub commit_rpc: Option<CommitRpc>,
pub commit_public: bool,
pub overlay: OverlayOptions,
pub cache_bytes: u64,
pub object_timeout: Duration,
}Expand description
Everything serve runs with, whether it came from flags or service.json.
Fields§
§data: PathBuf§config: PathBuf§listen: SocketAddr§token_file: PathBuf§p2p: bool§header_bootstrap: Option<PathBuf>§chain_peers: Vec<SocketAddr>§commit_rpc: Option<CommitRpc>§commit_public: bool§overlay: OverlayOptions§cache_bytes: u64§object_timeout: DurationImplementations§
Source§impl ServeOptions
impl ServeOptions
Sourcepub fn from_settings(settings: ServiceSettings) -> Self
pub fn from_settings(settings: ServiceSettings) -> Self
The installed service: chain sync, overlay with built-in seeds and the public commit providers unless service.json turns them off.
Trait Implementations§
Source§impl Clone for ServeOptions
impl Clone for ServeOptions
Auto Trait Implementations§
impl Freeze for ServeOptions
impl RefUnwindSafe for ServeOptions
impl Send for ServeOptions
impl Sync for ServeOptions
impl Unpin for ServeOptions
impl UnsafeUnpin for ServeOptions
impl UnwindSafe for ServeOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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