pub struct OscQueryServer { /* private fields */ }Expand description
An OSC query server
Implementations§
Source§impl OscQueryServer
impl OscQueryServer
Sourcepub fn with_address(self, addr: SocketAddr) -> Self
pub fn with_address(self, addr: SocketAddr) -> Self
Set the address to bind to
Sourcepub async fn map_node<F>(&self, path: &str, map: F) -> &Self
pub async fn map_node<F>(&self, path: &str, map: F) -> &Self
Apply the given function to a node at the provided path
Sourcepub async fn add_node(&self, path: &str, node: OscNode) -> Result<(), String>
pub async fn add_node(&self, path: &str, node: OscNode) -> Result<(), String>
Add a node to the server
Sourcepub async fn serve(&mut self) -> JoinHandle<Result<()>>
pub async fn serve(&mut self) -> JoinHandle<Result<()>>
Start the server
Auto Trait Implementations§
impl Freeze for OscQueryServer
impl !RefUnwindSafe for OscQueryServer
impl Send for OscQueryServer
impl Sync for OscQueryServer
impl Unpin for OscQueryServer
impl !UnwindSafe for OscQueryServer
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