pub struct PushPhy<Prev: Pusher> { /* private fields */ }Available on crate feature
ethtool only.Implementations§
Source§impl<Prev: Pusher> PushPhy<Prev>
impl<Prev: Pusher> PushPhy<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
pub fn nested_header(self) -> PushHeader<Self>
pub fn push_index(self, value: u32) -> Self
pub fn push_drvname(self, value: &CStr) -> Self
pub fn push_drvname_bytes(self, value: &[u8]) -> Self
pub fn push_name(self, value: &CStr) -> Self
pub fn push_name_bytes(self, value: &[u8]) -> Self
Sourcepub fn push_upstream_type(self, value: u32) -> Self
pub fn push_upstream_type(self, value: u32) -> Self
Associated type: PhyUpstreamType (enum)
pub fn push_upstream_index(self, value: u32) -> Self
pub fn push_upstream_sfp_name(self, value: &CStr) -> Self
pub fn push_upstream_sfp_name_bytes(self, value: &[u8]) -> Self
pub fn push_downstream_sfp_name(self, value: &CStr) -> Self
pub fn push_downstream_sfp_name_bytes(self, value: &[u8]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<Prev> Freeze for PushPhy<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushPhy<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushPhy<Prev>where
Prev: Send,
impl<Prev> Sync for PushPhy<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushPhy<Prev>where
Prev: Unpin,
impl<Prev> UnsafeUnpin for PushPhy<Prev>where
Prev: UnsafeUnpin,
impl<Prev> UnwindSafe for PushPhy<Prev>where
Prev: UnwindSafe,
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