pub struct Device {
pub name: String,
pub version: String,
pub files: Option<(DataRoot, Arc<dyn RecordingOpener>)>,
pub recording: Option<Arc<OpenRecording>>,
pub jobs: Option<Arc<Jobs>>,
pub runtime: String,
pub options: ServeOptions,
}Expand description
What a server offers every client.
Fields§
§name: StringThe server’s name (its host) and version, shown to clients.
version: String§files: Option<(DataRoot, Arc<dyn RecordingOpener>)>The data root and how recordings under it are opened; None: no files.
recording: Option<Arc<OpenRecording>>The recording every client starts with, if any.
jobs: Option<Arc<Jobs>>The jobs it runs for clients (sorts); None: none.
runtime: StringThe compute runtime its jobs run on, as clients are told (“” = none or unknown).
options: ServeOptionsTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Device
impl !UnwindSafe for Device
impl Forget for Device
impl Freeze for Device
impl Move for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
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