pub struct Channel<'a> {
pub osc_sender: &'a OscSender,
pub channel: u32,
}Fields§
§osc_sender: &'a OscSender§channel: u32Implementations§
Source§impl Channel<'_>
impl Channel<'_>
Sourcepub fn at(&self, value: u8) -> Result<(), OscSenderError>
pub fn at(&self, value: u8) -> Result<(), OscSenderError>
Sets this channel’s intensity to the specified value value: The intensity of that channel, in percent.
Sourcepub fn param(&self, param: &str, value: i32) -> Result<(), OscSenderError>
pub fn param(&self, param: &str, value: i32) -> Result<(), OscSenderError>
Sets this channel’s parameter to the specified value. param: The parameter to change. e.g: “pan” or “tilt” value: what to set this parameter to. A value in degrees for pan and tilt
Sourcepub fn pan(&self, degrees: i32) -> Result<(), OscSenderError>
pub fn pan(&self, degrees: i32) -> Result<(), OscSenderError>
Sets a channel’s pan value to the specified angle. degrees: The degree value of the pan of this channel
Auto Trait Implementations§
impl<'a> Freeze for Channel<'a>
impl<'a> RefUnwindSafe for Channel<'a>
impl<'a> Send for Channel<'a>
impl<'a> Sync for Channel<'a>
impl<'a> Unpin for Channel<'a>
impl<'a> UnsafeUnpin for Channel<'a>
impl<'a> UnwindSafe for Channel<'a>
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