#[non_exhaustive]pub struct YarnApplication {
pub name: String,
pub state: State,
pub progress: f32,
pub tracking_url: String,
/* private fields */
}Expand description
A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The application name.
state: StateRequired. The application state.
progress: f32Required. The numerical progress of the application, from 1 to 100.
tracking_url: StringOptional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Implementations§
Source§impl YarnApplication
impl YarnApplication
pub fn new() -> Self
Sourcepub fn set_progress<T: Into<f32>>(self, v: T) -> Self
pub fn set_progress<T: Into<f32>>(self, v: T) -> Self
Sets the value of progress.
Sourcepub fn set_tracking_url<T: Into<String>>(self, v: T) -> Self
pub fn set_tracking_url<T: Into<String>>(self, v: T) -> Self
Sets the value of tracking_url.
Trait Implementations§
Source§impl Clone for YarnApplication
impl Clone for YarnApplication
Source§fn clone(&self) -> YarnApplication
fn clone(&self) -> YarnApplication
Returns a duplicate of the value. Read more
1.0.0 · 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 YarnApplication
impl Debug for YarnApplication
Source§impl Default for YarnApplication
impl Default for YarnApplication
Source§fn default() -> YarnApplication
fn default() -> YarnApplication
Returns the “default value” for a type. Read more
Source§impl Message for YarnApplication
impl Message for YarnApplication
Source§impl PartialEq for YarnApplication
impl PartialEq for YarnApplication
impl StructuralPartialEq for YarnApplication
Auto Trait Implementations§
impl Freeze for YarnApplication
impl RefUnwindSafe for YarnApplication
impl Send for YarnApplication
impl Sync for YarnApplication
impl Unpin for YarnApplication
impl UnwindSafe for YarnApplication
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