pub struct OscQuery { /* private fields */ }Expand description
Represents an OSCQuery server that exposes an OSC node tree over HTTP.
Implementations§
Source§impl OscQuery
impl OscQuery
Sourcepub fn new(host_info: HostInfo, root: OscRootNode) -> Self
pub fn new(host_info: HostInfo, root: OscRootNode) -> Self
Creates a new OscQuery server instance.
§Arguments
host_info- InitialHostInfofor the server.root- TheOscRootNoderepresenting the OSC address space.
Sourcepub async fn serve<T>(&mut self, addr: T) -> Result<SocketAddr, Error>where
T: ToSocketAddrs,
pub async fn serve<T>(&mut self, addr: T) -> Result<SocketAddr, Error>where
T: ToSocketAddrs,
Auto Trait Implementations§
impl Freeze for OscQuery
impl !RefUnwindSafe for OscQuery
impl Send for OscQuery
impl Sync for OscQuery
impl Unpin for OscQuery
impl !UnwindSafe for OscQuery
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