pub enum PtpServer {
GmidDomain {
gmid: Eui64,
domain: Option<PtpDomain>,
},
Traceable,
}Expand description
PTP server: GMID and domain or traceable.
Variants§
Implementations§
Source§impl PtpServer
impl PtpServer
Sourcepub fn from_gmid(gmid: impl Into<Eui64>) -> Self
pub fn from_gmid(gmid: impl Into<Eui64>) -> Self
Constructs a PtpServer from the specified GMID.
Sourcepub fn from_gmid_with_domain(gmid: impl Into<Eui64>, domain: PtpDomain) -> Self
pub fn from_gmid_with_domain(gmid: impl Into<Eui64>, domain: PtpDomain) -> Self
Sourcepub fn from_gmid_with_domain_name(
gmid: impl Into<Eui64>,
name: impl ToString,
) -> Self
pub fn from_gmid_with_domain_name( gmid: impl Into<Eui64>, name: impl ToString, ) -> Self
Constructs a PtpServer from the specified GMID and domain name.
This will assign version IEEE 1588-2002.
Sourcepub fn try_from_ptp_gmid_with_domain_number(
gmid: impl Into<Eui64>,
number: u8,
) -> Result<Self, AttributeError>
pub fn try_from_ptp_gmid_with_domain_number( gmid: impl Into<Eui64>, number: u8, ) -> Result<Self, AttributeError>
Tries to construct a PtpServer from the specified GMID and domain number.
Returns an Error if number is not in range (0-127) (inclusive)
pub fn new_traceable() -> Self
Trait Implementations§
impl Eq for PtpServer
impl StructuralPartialEq for PtpServer
Auto Trait Implementations§
impl Freeze for PtpServer
impl RefUnwindSafe for PtpServer
impl Send for PtpServer
impl Sync for PtpServer
impl Unpin for PtpServer
impl UnsafeUnpin for PtpServer
impl UnwindSafe for PtpServer
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