Struct gmt_dos_clients_scope::client::XScope
source · pub struct XScope<K = PlotScope>where
K: ScopeKind,{ /* private fields */ }Expand description
Data scope client
Implementations§
source§impl<K: ScopeKind> XScope<K>
impl<K: ScopeKind> XScope<K>
sourcepub fn new<S: Into<String>>(server_ip: S, client_address: S) -> Self
pub fn new<S: Into<String>>(server_ip: S, client_address: S) -> Self
Creates a new scope
A scope is build from both the server IP and the client internet socket addresses
sourcepub fn signal<U>(self, port: u32) -> Result<Self, ClientError>where
U: UniqueIdentifier + 'static,
pub fn signal<U>(self, port: u32) -> Result<Self, ClientError>where U: UniqueIdentifier + 'static,
Adds a signal to the scope
sourcepub fn take_monitor(&mut self) -> Monitor
pub fn take_monitor(&mut self) -> Monitor
Takes ownership of Monitor
Auto Trait Implementations§
impl<K = PlotScope> !RefUnwindSafe for XScope<K>
impl<K = PlotScope> !Send for XScope<K>
impl<K = PlotScope> !Sync for XScope<K>
impl<K> Unpin for XScope<K>where K: Unpin,
impl<K = PlotScope> !UnwindSafe for XScope<K>
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