pub struct RemoteSource { /* private fields */ }Expand description
Snapshots from rigtop --agent on another machine.
Implementations§
Source§impl RemoteSource
impl RemoteSource
Sourcepub fn new(target: RemoteTarget) -> Self
pub fn new(target: RemoteTarget) -> Self
Creates a source; the connection is made on the first poll.
Sourcepub fn target(&self) -> &RemoteTarget
pub fn target(&self) -> &RemoteTarget
The target this source connects to.
Trait Implementations§
Source§impl DataSource for RemoteSource
impl DataSource for RemoteSource
Source§fn poll(&mut self) -> Result<Snapshot, SourceError>
fn poll(&mut self) -> Result<Snapshot, SourceError>
Returns the newest snapshot from the agent, waiting for one if none arrived since the previous poll.
Source§fn signal_process(
&mut self,
pid: u32,
signal: ProcessSignal,
) -> Result<(), SourceError>
fn signal_process( &mut self, pid: u32, signal: ProcessSignal, ) -> Result<(), SourceError>
Sends
signal to process pid on the monitored host, with the
privileges of the user the source runs as.Source§fn set_interval(&mut self, interval: Duration)
fn set_interval(&mut self, interval: Duration)
Tells the source how often it will be polled. Remote sources forward
this to the agent, which samples on its own schedule; local sources
need nothing.
Source§fn set_process_limit(&mut self, limit: Option<usize>)
fn set_process_limit(&mut self, limit: Option<usize>)
Limits snapshots to the top
limit processes by CPU (None: all).
Remote sources use this to save bandwidth for hosts in an overview.Auto Trait Implementations§
impl !Sync for RemoteSource
impl Freeze for RemoteSource
impl RefUnwindSafe for RemoteSource
impl Send for RemoteSource
impl Unpin for RemoteSource
impl UnsafeUnpin for RemoteSource
impl UnwindSafe for RemoteSource
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