[−][src]Struct netspeed::command::Operator
Methods
impl Operator
[src]
pub fn new(conn: TcpStream) -> Self
[src]
pub fn ping_write_then_read(&mut self) -> Result<()>
[src]
pub fn ping_read_then_write(&mut self) -> Result<()>
[src]
pub fn request_downstream(&mut self, duration: Duration) -> Result<()>
[src]
pub fn request_upstream(&mut self, duration: Duration) -> Result<()>
[src]
pub fn write_loop(&mut self, timeout: Duration) -> Result<u64>
[src]
pub fn read_loop(&mut self) -> Result<u64>
[src]
pub fn send_buffer(&mut self, buff: &[u8]) -> Result<()>
[src]
pub fn receive_buffer(&mut self, buff: &mut [u8]) -> Result<()>
[src]
pub fn write(&mut self, cmd: Command) -> Result<()>
[src]
pub fn read(&mut self) -> Result<Command>
[src]
pub fn write_duration(&mut self, duration: Duration) -> Result<()>
[src]
pub fn read_duration(&mut self) -> Result<Duration>
[src]
pub fn expect(&mut self, expect: Command) -> Result<()>
[src]
pub fn write_decline(
&mut self,
reason: DeclineReason,
shutdown: bool
) -> Result<()>
[src]
&mut self,
reason: DeclineReason,
shutdown: bool
) -> Result<()>
pub fn read_decline_reason(&mut self) -> Result<DeclineReason>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, 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>,