[−][src]Struct cortex::worker::InitWorker
Worker
for initializing/importing a new corpus into CorTeX
Fields
service: String
name of the service ("init")
version: f32
version, as usual
message_size: usize
message size, as usual
source: String
full URL (including port) to task source/dispatcher
sink: String
full URL (including port) to task sink/receiver
backend_address: String
address to the Task store backend (special case, only for the init service, third-party workers can't access the Task store directly)
identity: String
thread-local unique identifier
Trait Implementations
impl Clone for InitWorker
[src]
fn clone(&self) -> InitWorker
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InitWorker
[src]
impl Default for InitWorker
[src]
fn default() -> InitWorker
[src]
impl Worker for InitWorker
[src]
fn get_service(&self) -> &str
[src]
fn get_source_address(&self) -> Cow<str>
[src]
fn get_sink_address(&self) -> Cow<str>
[src]
fn get_identity(&self) -> &str
[src]
fn set_identity(&mut self, identity: String)
[src]
fn message_size(&self) -> usize
[src]
fn convert(&self, path_opt: &Path) -> Result<File, Box<dyn Error>>
[src]
fn start(&mut self, limit: Option<usize>) -> Result<(), Box<dyn Error>>
[src]
fn pool_size(&self) -> usize
[src]
fn start_single(
&self,
limit: Option<usize>
) -> Result<(), Box<dyn Error + 'static>>
[src]
&self,
limit: Option<usize>
) -> Result<(), Box<dyn Error + 'static>>
fn receive_from_cortex(
&self,
input_tmpdir: &TempDir,
source: &Socket
) -> (Result<File, Box<dyn Error + 'static>>, String, usize, String)
[src]
&self,
input_tmpdir: &TempDir,
source: &Socket
) -> (Result<File, Box<dyn Error + 'static>>, String, usize, String)
fn respond_to_cortex(
&self,
file_result: Result<File, Box<dyn Error + 'static>>,
input_size: usize,
taskid: &str,
sink: &Socket
)
[src]
&self,
file_result: Result<File, Box<dyn Error + 'static>>,
input_size: usize,
taskid: &str,
sink: &Socket
)
Auto Trait Implementations
impl RefUnwindSafe for InitWorker
impl Send for InitWorker
impl Sync for InitWorker
impl Unpin for InitWorker
impl UnwindSafe for InitWorker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,