pub struct OscSender { /* private fields */ }
Expand description
A sender to send messages over an OSC socket.
See OscSocket::sender
.
Implementations§
Source§impl OscSender
impl OscSender
Sourcepub async fn send_to<A: ToSocketAddrs, P: IntoOscPacket>(
&self,
packet: P,
addrs: A,
) -> Result<(), Error>
pub async fn send_to<A: ToSocketAddrs, P: IntoOscPacket>( &self, packet: P, addrs: A, ) -> Result<(), Error>
Sends an OSC packet on the socket to the given address.
See OscSocket::send_to
.
Sourcepub async fn send<P: IntoOscPacket>(&self, packet: P) -> Result<(), Error>
pub async fn send<P: IntoOscPacket>(&self, packet: P) -> Result<(), Error>
Sends an OSC packet on the connected socket.
See OscSocket::send
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OscSender
impl RefUnwindSafe for OscSender
impl Send for OscSender
impl Sync for OscSender
impl Unpin for OscSender
impl UnwindSafe for OscSender
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