#[repr(C)]pub enum PamojaLinkCost {
Free = 0,
Metered = 1,
Expensive = 2,
Offline = 3,
}Expand description
What the link back to the network currently costs.
Variants§
Free = 0
Bytes are effectively free, such as on wired power and ethernet.
Metered = 1
Bytes are paid for, such as on a cellular plan.
Expensive = 2
Bytes are scarce, such as on a satellite or long-range radio link.
Offline = 3
Nothing can be shipped at all.
Trait Implementations§
Source§impl Clone for PamojaLinkCost
impl Clone for PamojaLinkCost
Source§fn clone(&self) -> PamojaLinkCost
fn clone(&self) -> PamojaLinkCost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaLinkCost
Source§impl Debug for PamojaLinkCost
impl Debug for PamojaLinkCost
impl Eq for PamojaLinkCost
Source§impl PartialEq for PamojaLinkCost
impl PartialEq for PamojaLinkCost
Source§fn eq(&self, other: &PamojaLinkCost) -> bool
fn eq(&self, other: &PamojaLinkCost) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaLinkCost
Auto Trait Implementations§
impl Freeze for PamojaLinkCost
impl RefUnwindSafe for PamojaLinkCost
impl Send for PamojaLinkCost
impl Sync for PamojaLinkCost
impl Unpin for PamojaLinkCost
impl UnsafeUnpin for PamojaLinkCost
impl UnwindSafe for PamojaLinkCost
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