pub struct TvuReceiveSocketCount(/* private fields */);Expand description
Number of TVU receive sockets to create during gossip bootstrap.
Implementations§
Source§impl TvuReceiveSocketCount
impl TvuReceiveSocketCount
Sourcepub fn new(value: usize) -> Result<Self, TuningValueError>
pub fn new(value: usize) -> Result<Self, TuningValueError>
Creates a validated TVU socket count.
§Errors
Returns TuningValueError::ZeroSocketCount when value is zero.
Trait Implementations§
Source§impl Clone for TvuReceiveSocketCount
impl Clone for TvuReceiveSocketCount
Source§fn clone(&self) -> TvuReceiveSocketCount
fn clone(&self) -> TvuReceiveSocketCount
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 TvuReceiveSocketCount
impl Debug for TvuReceiveSocketCount
Source§impl Hash for TvuReceiveSocketCount
impl Hash for TvuReceiveSocketCount
Source§impl Ord for TvuReceiveSocketCount
impl Ord for TvuReceiveSocketCount
Source§fn cmp(&self, other: &TvuReceiveSocketCount) -> Ordering
fn cmp(&self, other: &TvuReceiveSocketCount) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TvuReceiveSocketCount
impl PartialEq for TvuReceiveSocketCount
Source§impl PartialOrd for TvuReceiveSocketCount
impl PartialOrd for TvuReceiveSocketCount
impl Copy for TvuReceiveSocketCount
impl Eq for TvuReceiveSocketCount
impl StructuralPartialEq for TvuReceiveSocketCount
Auto Trait Implementations§
impl Freeze for TvuReceiveSocketCount
impl RefUnwindSafe for TvuReceiveSocketCount
impl Send for TvuReceiveSocketCount
impl Sync for TvuReceiveSocketCount
impl Unpin for TvuReceiveSocketCount
impl UnsafeUnpin for TvuReceiveSocketCount
impl UnwindSafe for TvuReceiveSocketCount
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