#[non_exhaustive]pub struct CarrierConfig { /* private fields */ }Expand description
Carrier of a transmit channel, or the carrier that a receive channel removes.
Implementations§
Source§impl CarrierConfig
impl CarrierConfig
Sourcepub fn with_frequency(self, frequency: Rate) -> Self
pub fn with_frequency(self, frequency: Rate) -> Self
Assign the given value to the frequency field.
Sourcepub fn with_duty_percent(self, duty_percent: u8) -> Self
pub fn with_duty_percent(self, duty_percent: u8) -> Self
Assign the given value to the duty_percent field.
Sourcepub fn duty_percent(&self) -> u8
pub fn duty_percent(&self) -> u8
High time in percent of the carrier period.
Sourcepub fn with_level(self, level: Level) -> Self
pub fn with_level(self, level: Level) -> Self
Assign the given value to the level field.
Trait Implementations§
Source§impl Clone for CarrierConfig
Available on crate feature unstable only.
impl Clone for CarrierConfig
Available on crate feature
unstable only.impl Copy for CarrierConfig
Available on crate feature
unstable only.Source§impl Debug for CarrierConfig
Available on crate feature unstable only.
impl Debug for CarrierConfig
Available on crate feature
unstable only.Source§impl Default for CarrierConfig
Available on crate feature unstable only.
impl Default for CarrierConfig
Available on crate feature
unstable only.impl Eq for CarrierConfig
Available on crate feature
unstable only.Source§impl Hash for CarrierConfig
Available on crate feature unstable only.
impl Hash for CarrierConfig
Available on crate feature
unstable only.Source§impl PartialEq for CarrierConfig
Available on crate feature unstable only.
impl PartialEq for CarrierConfig
Available on crate feature
unstable only.impl StructuralPartialEq for CarrierConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Forget for CarrierConfig
impl Freeze for CarrierConfig
impl Move for CarrierConfig
impl RefUnwindSafe for CarrierConfig
impl Send for CarrierConfig
impl Sync for CarrierConfig
impl Unpin for CarrierConfig
impl UnsafeUnpin for CarrierConfig
impl UnwindSafe for CarrierConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)