[−][src]Struct ether_dream::dac::stream::Stream
A bi-directional communication stream between the user and a Dac
.
Methods
impl Stream
[src]
pub fn dac(&self) -> &Addressed
[src]
Borrow the inner DAC to examine its state.
pub fn queue_commands(&mut self) -> CommandQueue
[src]
Queue one or more commands to be submitted to the DAC at once.
pub fn set_nodelay(&self, b: bool) -> Result<()>
[src]
This directly calls set_nodelay
on the inner TcpStream. In other words, this sets the
value of the TCP_NODELAY option for this socket.
Note that due to the necessity for very low-latency communication with the DAC, this API enables TCP_NODELAY by default. This method is exposed in order to allow the user to disable this if they wish.
When not set, data is buffered until there is a sufficient amount to send out, thereby avoiding the frequent sending of small packets. Although perhaps more efficient for the network, this may result in DAC underflows if Data commands are delayed for too long.
pub fn nodelay(&self) -> Result<bool>
[src]
Gets the value of the TCP_NODELAY option for this socket.
For more infnormation about this option, see set_nodelay
.
pub fn set_ttl(&self, ttl: u32) -> Result<()>
[src]
This directly calls set_ttl
on the inner TcpStream. In other words, this sets the
value for the IP_TTL
option on this socket.
This value sets the time-to-live field that is used in every packet sent from this socket. Time-to-live describes the number of hops between devices that a packet may make before it is discarded/ignored.
pub fn ttl(&self) -> Result<u32>
[src]
Gets the value of the IP_TTL
option for this socket.
For more information about this option see set_ttl
.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,